Skip to main content
100%

Fork of Fork of ICE - 7 Pie Chart

✓ Published0🌍 Public
SSaikiran2029
Last edited Mar 27, 2022
Created on Mar 27, 2022

This pie chart visualizes the total number of tourists visiting various countries, with each slice colored distinctly and labeled with its value in lakhs. The chart reads data from a CSV file fetched via `d3.csv`, then uses `d3.pie` and `d3.arc` to generate the segments, while `scaleOrdinal` assigns the categorical colors. A legend on the right maps each country to its corresponding color and visitor count, rendered alongside the chart using SVG elements. The visualization updates dynamically asynchronously, with text labels positioned via `arc.centroid` for clarity.

AI-generated description
MIT Licensed

Similar vizzes