Using the 3-D enhancements of Three.js in order to help visualize a 2-D problem.
In certain cases, it is helpful to be able to rotate a graph in order to look at it from a different perspective.
Although the 'data' occupies the full graph (red axes), the only interesting parts are on the diagonal green axes.
Click the checkbox above to flip the coordinate axis, to view it in the more convenient orientation.
This example also uses the Three.js Raycaster object to enable selection of nodes.
Click a node to select/deselect it.