Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

scatterplot

Public visualization

scatterplot

0 stars0🌍 Public
Eevsjg
Last edited Oct 11, 2020
Created on Oct 11, 2020
Forked from bar graph v2

This scatterplot displays the population of four countries using horizontal bars, with country names on the y-axis and population counts on the x-axis. The visualization loads data from a CSV file using `d3.csv`, then applies `scaleLinear` and `scaleBand` to map values to screen coordinates. Axis ticks are generated with `axisLeft` and `axisBottom`, with tick labels formatted using `d3.format` to abbreviate large numbers. The chart is rendered as an SVG, with bars styled via `rect` elements and a title added as SVG text.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed