Skip to main content
100%

Practice Reusable D3 Scatter Plot

✓ Published0🌍 Public
SSubhendu Karmakar
Last edited Dec 9, 2023
Created on Dec 9, 2023

This example visualizes the average rural education index per year across India using a reusable D3 scatter plot. The chart displays circular marks positioned by year on the x-axis and mean education value on the y-axis, with axes generated via `d3.axisBottom` and `d3.axisLeft`. Data is loaded asynchronously from a GitHub-hosted CSV using `d3.csv`, filtered for rural sectors, and aggregated by calculating the mean education score per year with `d3.scaleLinear` for both scales. The SVG rendering approach uses `d3.selectAll` with a data join to draw circles.

AI-generated description

D3 Scatterplot Practice with other dataset.

MIT Licensed

Similar vizzes