Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task-9_Question-1

Public visualization

Task-9_Question-1

0 stars0🌍 Public
Mmasters200128@gmail.com
Last edited Apr 26, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

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 description

Comments

Sign in to join the discussion.

MIT Licensed