3 ms·
D3 Version 4 has more utilities and examples of interactions with Canvas. Here's an example of a relatively small graph (~500 nodes, 10k edges) that SVG used to
by oscilloscope 10y ago
D3 Version 4 has more utilities and examples of interactions with Canvas. Here's an example of a relatively small graph (~500 nodes, 10k edges) that SVG used to struggle with, but Canvas renders with ease.
http://bl.ocks.org/syntagmatic/954b31aa8b8beb91b30ccb0c9e57f6ce http://bl.ocks.org/syntagmatic/954b31aa8b8beb91b30ccb0c9e57f...
Notice the nodes are draggable, an interaction supported by the new simulation.find https://github.com/d3/d3-force/#simulation_find https://github.com/d3/d3-force/#simulation_find
- polskibus 10y agoWow, I didn't know D3 v.4 is so much better for Canvas, thanks for the link. However, this simulation runs horribly slow in FF and IE - I wonder where the fault is.