Skip to main content
100%

ICE - 7 Pie Chart Reyden Harris

✓ Published0🌍 Public
RReyden Harris
Last edited Mar 13, 2023
Created on Mar 13, 2023

This pie chart displays the percentage of sales contributed by each department within a global conglomerate. The visualization uses d3.pie and d3.arc to generate the slices, with a legend listing each department and its corresponding percentage. Data is loaded from a remote CSV file using d3.csv, and d3.scaleOrdinal maps categorical values to a predefined array of colors. The SVG rendering includes labels positioned at each slice’s centroid via arcGenerator.centroid, with the main chart centered at (250, 250) and the legend placed to the right.

AI-generated description
MIT Licensed

Similar vizzes