Skip to main content
100%

sunburst chart

✓ Published0🌍 Public
Nnitinramagiri1@gmail.com
Last edited Nov 1, 2024
Created on Nov 1, 2024

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 description

A sunburst chart plot showing the CO2 emissions by different countries from the Global Data dataset.

  1. A prototype of a Sunburst chart using javaScript and some methods from D3 package.
  2. I am working on adding practical data to the code and use more d3 methods replacing the usual javaScript elements.
MIT Licensed

Similar vizzes