gl-modules-viz

Just experimenting with making a force-directed graph of the core modules available in the modules.gl ecosystem, potentially to include on the home page.

gl-modules-viz

Just experimenting with making a force-directed graph of the core modules available in the modules.gl ecosystem, potentially to include on the home page.

demo

The visualisation as a module too, so it's easy to include anywhere with browserify and npm.

Creates and returns an svg element containing the visualisation. Takes the following options:

  • opts.colors.bg: background color for the SVG.
  • opts.colors.fg: foreground color, i.e. the links, text and nodes.
  • opts.colors.hightlight: the color to use when highlighting a node.