🌍 Public
SATISHQUESTION1
This example presents a pie chart of U.S. states and their populations in millions, sourced from a CSV file hosted on GitHub. It uses d3.pie and d3.arc to generate the chart, with d3.scaleOrdinal assigning colors to each slice. The visualization includes value labels on each section and a legend with colored rectangles and text, all rendered as SVG. Population values and state names are formatted and displayed using d3.format.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed
Comments
Sign in to join the discussion.