BoxAnnotation should work with ColumnDataSource
See original GitHub issueHi,
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:
- Created 6 years ago
- Reactions:4
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing inactive discussion. There does not seem to be enough interest to warrant adding complexity, and there are workarounds.
@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.