ViewCircles
✓ Published0🌍 Public
This example visualizes groundnut production by state using a filtered bar chart of circles, with year-based checkbox filtering to adjust the displayed data. Built with D3 v7, it loads CSV data from a GitHub gist and uses D3’s `csv`, `scaleBand`, `scaleLinear`, `scaleOrdinal`, `rollup`, and `sum` APIs to aggregate and render the SVG output. A tooltip appears on mouseover, and the chart updates dynamically by removing and redrawing circles based on the selected years.
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