🌍 Public
Bubble chart
This bubble chart visualizes wheat yield data for Indian states, with each circle’s size representing the yield in kilograms per hectare. It uses a force-directed layout via `d3.forceSimulation` with `forceX`, `forceY`, and `forceCollide` to pack the bubbles without overlap. Circle radii are computed with `d3.scaleSqrt`, and colors come from `d3.scaleOrdinal` with `schemeCategory10`. Data loads from a remote CSV file using `d3.csv`, and hover effects change bubble color to orange.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.