D3 Scatterplot India
✓ Published0🌍 Public
This scatterplot visualizes the relationship between fruit and vegetable prices across Indian states, using data from the All India Index February 2016 dataset. Each circle represents a state, with its position determined by the two price indices. The visualization uses d3.csv to load the data, d3.scaleLinear with d3.extent to map values to screen coordinates, and d3.axisLeft and d3.axisBottom for the axes. Hovering over any circle reveals the exact fruit and vegetable values via a d3-created SVG title element.
AI-generated descriptionMIT Licensed