Skip to main content
100%

Tutorial Sunburst Datavisualisation

✓ Published1🌍 Public
Jjenniferslagt
Last edited Nov 14, 2019
Created on Nov 11, 2019
Forked from Hello VizHub

This tutorial demonstrates a sunburst chart built with D3.js (v4), visualizing hierarchical data where each node is represented as a ring segment. The visualization uses the `d3.partition()` layout and `d3.arc()` to compute angular and radial positions for each slice, with colors assigned via `d3.scaleOrdinal` and a Category20b color scheme. Node data, including topics and sub-topics, is hardcoded in the script, and rendered as SVG paths within a group element. The example also includes a CSV file with weapon-type counts, though the chart currently displays the static nodeData structure rather than loading that external data.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes