🌍 Public
Task-9_Question-1
This donut chart visualizes total wheat production across Indian states, with data sourced from a CSV file. Users interact with checkboxes to filter the dataset by year, dynamically updating the chart. The visualization uses D3.js v7 APIs like `d3.pie()`, `d3.arc()`, and `d3.rollup()` to aggregate and render slices. Hovering over a slice highlights it and shows a tooltip with the state name and production value. The chart is rendered as an SVG with a color legend, and the code also logs total production to the console.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.