Support graphs/trees/networks #187
Comments
+1 for networkx support! |
+1 for this! |
+1 |
1 similar comment
+1 |
+1 for networkx |
+1 |
As a first step, we could integrate static graph layouts based on the charts interface. You do all of the layout at graph creation time in python then no JS graph components are required. |
Another first step would be to make the MPL support robust enough so that networkx (or some subset of it, anyway) works out of the box with |
I will take a first stab at it, since I want to use it for another project. |
@JosephCottam any update on experiments with networkX? Also, a potentially useful reference from @pzwang http://sigmajs.org/ |
Although this is already a long-term milestone, |
The other thing we could do is render an svg on top of the canvas and then allow a few d3 based renderers |
While this issue is still pending. Please see this notebook example that uses Bokeh to plot NetworkX graphs. |
You might also be interested in the network I've been working on with @gmarkall - http://nbviewer.ipython.org/github/gmarkall/wot/blob/master/wot/notebooks/Visualize%20the%20WOT.ipynb?flush_cache=True |
Would love to see native graphing support in Bokeh. |
+1 |
It would very nice if bokeh supported collapsable trees for visualizing things like file systems or hierarchical data. Not sure if this would be same implementation as this issue or a new issue. |
Heres an interesting ggplot inspired take on a graph plotting api https://github.com/thomasp85/ggraph |
+1 Add support for graphing in bokeh, please! |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
If rendering graph data that is layed out statically on the python side is sufficient, see e.g. https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/graphs.py which is possible as of Adding dynamic graph layout to the JS side is another matter. To add it to the core library will require lots of deliberation, planning, testing. However, it would probably not be too difficult to write a custom extension that wraps e.g. the d3 graph layout library (or another JS library) and connects it to Bokeh python. There's a new user's guide section on extending Bokeh that could be helpful: http://bokeh.pydata.org/en/latest/docs/user_guide/extensions.html We could also help anyone develop a custom extension by answering questions, etc. I'd suggest this is probably the quickest route for now, and the custom extension could be shared with the community which I am sure many people would appreciate. (Making it trivial to create and share extensions is on the short term roadmap, so that the community can move forward itself, and not have to "wait on us" for everything) |
Another attempt at getting this working from EuroPython 2016: http://nbviewer.jupyter.org/urls/ep2016.europython.eu/media/conference/slides/networkx-visualization-powered-by-bokeh.ipynb |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 |
1 similar comment
+1 |
Please, there is no use to continued +1 It does not add any information or help. I will repeat what I said earlier this year: If rendering graph data that is layed out statically on the python side (e.g. by using NetworkX) is sufficient, see e.g. https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/graphs.py which is possible as of 0.12.0. Adding dynamic graph layout to the JS side is another matter. To add it to the core library will require lots of deliberation, planning, testing. However, it would probably not be too difficult to write a custom extension that wraps e.g. the d3 graph layout library (or another JS library) and connects it to Bokeh python. There's a new user's guide section on extending Bokeh that could be helpful: http://bokeh.pydata.org/en/latest/docs/user_guide/extensions.html We could also help anyone develop a custom extension by answering questions, etc. I'd suggest this is probably the quickest route for now, and the custom extension could be shared with the community which I am sure many people would appreciate. (Making it trivial to create and share extensions is on the short term roadmap, so that the community can move forward itself, and not have to "wait on us" for everything) |
There is now supported work to add network/graph capability to Bokeh, for not-huge graph sizes. There is corresponding supported work to add complementary capability to Datashader for large graph sizes. Tenatively marking for |
+1 |
Need to add support for visualizing graph data. Need to integrate with various formats (dot, networkx, etc.), support things like force directed layouts, etc.
The text was updated successfully, but these errors were encountered: