[BokehJS] like to see linked panning example

I see a plenty of examples how to generate linked panning plots with python or scala, however cannot find any with standalone BokehJS. I’d appreciate if someone can supply a simple example.

zhihui,

Unfortunately we do not currently have the resources or person-power to do justice to the JS interface, the way I would like to. I am hoping some new contributors will be interested to join the team who could help develop the JS API and docs to a much higher level, because realistically that is what it is going to take to get the work done. I apologize that I do not have the bandwidth to try and work up a complete example (I have to prepare materials for an upcoming conference) but I will say that to have linked panning in Bokeh, it is achieved by sharing ranges between plots. The "default" ranges are stored on the a plot's frame object:

  plot.get('frame').get('x_ranges')['default']
  plot.get('frame').get('y_ranges')['default']

You can pass these as "x_range" and "y_range" atributes when you create a second Plot:

  https://github.com/bokeh/bokeh/blob/master/bokehjs/src/coffee/common/plot.coffee#L335

If you are using the JQ "bokeh" function, unfortunately it looks like code to accept existing ranges is commented out for some reason:

  https://github.com/bokeh/bokeh/blob/master/bokehjs/src/coffee/api/figure.coffee#L56

uncommenting that might allow passing in existing ranges to work with the JQ plugin as well.

Thanks,

Bryan

···

On Apr 15, 2015, at 4:41 AM, zhihui <[email protected]> wrote:

I see a plenty of examples how to generate linked panning plots with python or scala, however cannot find any with standalone BokehJS. I'd appreciate if someone can supply a simple example.

--
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/32dfe7e1-6d5e-4633-9341-954d54638b87%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.