Skip to main content
100%

D3 Scatter Plot for Education rate of Student

✓ Published1🌍 Public
RRochelle
Last edited Sep 30, 2021
Created on Sep 15, 2021
Forked from D3 Scatter Plot

This D3 scatter plot shows the student-to-teacher ratio across different countries over time, with each circle representing one country-year observation. The data comes from the Global Economy rankings via a tidytuesday GitHub dataset, loaded as CSV with d3.csv. The visualization uses d3.scaleLinear for both the x-axis (year) and y-axis (student ratio), along with d3.axisLeft and d3.axisBottom to render the axes. Circles are drawn in SVG with semi-transparent fills, positioned using the projected coordinates from the scales.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. (https://gist.github.com/Rochelle-Wu/6f2a70efd063a00c4fd656aae2411fff).

The original data is shown in https://www.theglobaleconomy.com/rankings/Preprimary_school_enrollment/ Someone consolidated the dataset. So I download the dataset from github https://github.com/rfordatascience/tidytuesday/tree/master/data/2019/2019-05-07

MIT Licensed

Similar vizzes