Skip to main content
100%

ICE-7 Tagore Scatter Plot (1)

✓ Published0🌍 Public
Cchilukuritagore1427@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

This example presents a reusable scatter plot built with D3.js, visualizing state population changes between 2020 and 2021 from a CSV dataset. It shows the relationship between the two years' population figures, with each circle representing a state. The code defines a configurable `scatterPlot` function using D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs, then loads data via `csv` and renders SVG circles with axes. The plot is styled with the Share Tech font and adapts to the full window size, with axis labels added directly in `index.js`.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes