☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Can BoxAnnotation be attached to a data source?

Community Support
Paul
Paul

So, my CustomJS now successfully manages the typical glyphs (lines, circles, patches, etc) whenever the user changes the state of the view object.

I’d like to be able to use BoxAnnotation in the same way, but it does not seem to be possible to attach it to a data source. What’s the best strategy to be able to plot BoxAnnotations dynamically from the client (JS) side?

⌁   Link to post
birdsarah_continuum
birdsarah_continuum

Box annotations do not take a source - this is something we’ve
been supporting with more recent annotation additions -so I
encourage you to submit a feature request for it.

  In the meantime I would suggest trying a rect/quad with some

opacity. Of course you’ll need to manually set all directions
which you wouldn’t have to do with a box annotation, but hopefully
that’s not too bad.

Best,

Bird

···

On 5/5/16 7:58 AM,
wrote:

rootsumsquared@gmail.com

    So, my CustomJS now successfully manages the

typical glyphs (lines, circles, patches, etc) whenever the user
changes the state of the view object.

      I'd like to be able to use BoxAnnotation in the same way,

but it does not seem to be possible to attach it to a data
source. What’s the best strategy to be able to plot
BoxAnnotations dynamically from the client (JS) side?

–

  You received this message because you are subscribed to the Google

Groups “Bokeh Discussion - Public” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to bokeh+unsubscribe@continuum.io.

  To post to this group, send email to bokeh@continuum.io.

  To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/d8888a76-8627-4fa3-a243-676e27c34eb2%40continuum.io?utm_medium=email&utm_source=footer)      .

For more options, visit .

–
Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)

https://groups.google.com/a/continuum.io/d/msgid/bokeh/d8888a76-8627-4fa3-a243-676e27c34eb2%40continuum.io
https://groups.google.com/a/continuum.io/d/optout

⌁   Link to post

End of archived discussion · Replies are disabled