question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BoxAnnotation should work with ColumnDataSource

See original GitHub issue

Hi,

I found that a BoxAnnotation cannot currently fetch its parameters (like top, bottom) from a attached ColmunDataSource (via source argument). Other Annotations (like Arrow) can already do this. I would appreciate to see this implemented.

For instance, I’d like to do this: fig.add_layout(BoxAnnotation(left='starttime', right='enddtime', bottom='startvalue', source=data, fill_color='green', fill_alpha=0.3))

Daniel.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Sep 4, 2018

Closing inactive discussion. There does not seem to be enough interest to warrant adding complexity, and there are workarounds.

0reactions
mattpapcommented, Aug 3, 2022

@tomasero, can you motivate why do you specifically need BoxAnnotation or alternatively what’s missing from equivalent glyphs? In bokeh, glyphs are meant for dealing with data (including streaming), whereas annotations are for singular data points or unrelated to data altogether. Data support in annotations is more of a historical artifact than a well thought out feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annotations — Bokeh 3.0.3rc1 Documentation
This way, you can create legend entries based on groups of glyphs. To use data from a column of a ColumnDataSource to generate...
Read more >
Bokeh dynamically changing BoxAnnotation - Stack Overflow
Is there possible to update bokeh figure's renderes in IPython's interact function. I have code which looks like:
Read more >
Bokeh Test | Data Science With Python
from bokeh.models import ( BoxAnnotation, CustomJS, Span, Toggle, ) ... You have to create new ones for each figure so I made a...
Read more >
Visualizing Data with Bokeh and Pandas
Specifically, we will work through visualizing and exploring aspects of ... The Bokeh object ColumnDataSource provides this integration.
Read more >
NFL Punt Data - Interactive Plots using Bokeh - Kaggle
NOTE: INTERACTIVITY REQUIRES FORKING THE NOTEBOOK AND RUNNING IN EDIT MODE - IT WILL NOT WORK IN KAGGLE'S RENDERED NOTEBOOK.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found