4 ms·
This is really cool, but what about adding interactivity with the charts? My first thought when I saw the headline was that this python library just generates D
by Dartanion7 13y ago
This is really cool, but what about adding interactivity with the charts? My first thought when I saw the headline was that this python library just generates D3 code, but it seems to be generating some sort of a static SVG object.
- hhuuggoo 13y agoWe're actually using canvas. http://bokeh.pydata.org/plot_gallery/iris.html http://bokeh.pydata.org/plot_gallery/iris.html That has a selection tool you can play around with.
- bigreddot 13y agoThere are already some tools available, pan and wheel zoom, plot resizing, selection (on some plot types). Many more tool types are planned. As for the architecture, BokehJS is built entirely on top of HTML canvas. The python bokeh library sends data and plot specifications to the browser, which uses BokehJS to render the plot and handle interactive tools, etc.
- Dartanion7 13y agoGotcha, thanks.
- paddy_m 13y agoHere is a linked brushing example in the IPython notebook. http://nbviewer.ipython.org/urls/raw.github.com/ContinuumIO/bokeh/master/examples/plotting/notebook/linked_brushing.ipynb http://nbviewer.ipython.org/urls/raw.github.com/ContinuumIO/...
- primelens 13y agoFor some reason I can't get any of the interactivity buttons to work. EDIT: Ok, everything but the zoom works. How do you zoom?
- bigreddot 13y agoThe current zoom tool is a scroll wheel zoom, not a box selection zoom. Guessing that might be the issue since others have run into the ambiguous description as well. It will be labeled more precisely in master in a few days and in the next release as well. If that is not the issue, please file a ticket on GitHub!
- primelens 13y agoOn a Macbook, the scroll wheel equivalent is the two fingered scroll and that doesn't seem to work for me (scroll the page).
- bigreddot 13y agoDo you have the tool selected in the toolbar above? If so, please file a ticket on GH about this. Most of the Bokeh devs are on OSX so it would surprise me if it does not work on OSX, but if there is a bug we want to fix it!