sunburst chart
✓ Published0🌍 Public
This sunburst chart visualizes CO₂ emissions by country from the Global Data dataset, using a hierarchical radial layout with arcs representing regions (Eastern Asia, Northern America, Southern Asia) and their constituent countries. The chart employs D3’s `partition`, `hierarchy`, and `arc` APIs alongside `scaleOrdinal` with `schemeCategory10` and `schemePastel1` for color encoding. Hover tooltips, implemented via SVG `<title>` elements, display each country’s emission value. Rendering is performed with SVG, and the code is structured as a reusable `main` function that appends the chart and legend to a container.
AI-generated descriptionA sunburst chart plot showing the CO2 emissions by different countries from the Global Data dataset.
- A prototype of a Sunburst chart using javaScript and some methods from D3 package.
- I am working on adding practical data to the code and use more d3 methods replacing the usual javaScript elements.
MIT Licensed