🌍 Public
Viewing a saved revision (read-only)
ae131b919aa245f39528934aa6fb8298
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.