Skip to main content
100%

scatterplot

✓ Published0🌍 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
MIT Licensed

Similar vizzes