Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart RDW

Public visualization

Pie chart RDW

0 stars8🌍 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

Comments

Sign in to join the discussion.

MIT Licensed