Skip to main content
Public

Share visualization

Loading preview…

Scatter plot with customize axes

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 with customize axes

0
SS733-cmd
Last edited Feb 4, 2020
Created on Feb 4, 2020

This scatter plot displays the population of the ten most populous countries, with each country positioned along a categorical y-axis and its population scaled linearly on the x-axis. The chart customizes its axes by removing domain lines, adding gridlines through tick sizes, and formatting population labels with d3.format to abbreviate large numbers. Built with React and rendered as SVG, it uses d3.scalePoint for the y-axis, d3.scaleLinear for the x-axis, and d3.axisLeft and d3.axisBottom to generate the ticks. Data loads from a CSV file using d3.csv.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed