Can BoxAnnotation be attached to a data source?

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?

Could AjaxDataSource or RemoteDataSource be used to drive BoxAnnotations?

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:

[email protected]

    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 [email protected].

  To post to this group, send email to [email protected]

  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