Skip to main content
100%

Pie chart RDW

✓ Published8🌍 Public
SSergio Eijben
Last edited Nov 12, 2020
Created on Nov 11, 2020
Forked from Pie chart Test

This example displays a pie chart of yearly values using D3.js, rendering four labeled slices with a categorical color scheme. The visualization is built with the `d3.pie` layout function and `d3.arc` for paths and labels, rendered as SVG. It uses `d3.scaleOrdinal` for colors and `d3.schemeCategory10` for the palette, with data hardcoded in the script. The chart is centered using an SVG group transform, and each slice’s year is placed via the label centroid.

AI-generated description
MIT Licensed

Similar vizzes