Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot.js

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

Scatter Plot.js

1
Dddperdue
Last edited Mar 23, 2020
Created on Mar 23, 2020
Forked from Bar Chart.js

This scatter plot displays the population of five countries—China, India, the United States, Indonesia, and Brazil—on a linear scale, with country names on the y-axis and population counts on the x-axis. Circles mark each data point, accompanied by axis labels and a title. Using D3 v5 with SVG rendering, the code loads data via `d3.csv`, scales values with `scaleLinear` and `scalePoint`, and generates axes via `axisBottom` and `axisLeft`. Population figures are multiplied by 1000 to represent raw counts.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed