🌍 Public
Viewing a saved revision (read-only)
937195d15f3d4e668f7ee554c5b0ab4c
Fork of selling price of fortuner car in different years
Ssivamani
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from Literacy rate of visualization in Pie Chart
This example displays literacy rates for Southern Indian states as a pie chart, with each state’s name labeled on its slice and a color-coded legend showing the percentage value. Using D3.js v5, the code loads CSV data from a GitHub gist, then applies `d3.pie` and `d3.arc` to generate SVG paths, with `d3.scaleOrdinal` assigning colors. State names are placed via `arcGenerator.centroid`, while the legend lists each state and its formatted literacy percentage.
AI-generated description