Skip to main content
Public

Share visualization

Loading preview…

D3 Scatter Plot for Education rate of Student

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

D3 Scatter Plot for Education rate of Student

1
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

Comments

Sign in to join the discussion.

MIT Licensed