Skip to main content
100%

Untitled

✓ Published0🌍 Public
SSEDKI91
Last edited Sep 28, 2022
Created on Sep 28, 2022

This example visualizes a force-directed graph using Chart.js with a custom controller, rendering nodes and edges on a canvas. The graph displays character relationships from *Les Misérables* (the classic `tree.json` dataset), with steel-blue circular nodes labeled by character name and connected by weighted links. Users can switch between dendrogram, tree, and radial layouts via dropdown menus, while the Chart.js zoom plugin enables panning and zooming with mouse wheel or pinch gestures. The code integrates Chart.js 3.9.1, ChartDataLabels for annotations, and Hammer.js for touch support.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes