Skip to main content
100%

Scatterplot

✓ Published1🌍 Public
PPiotr Paszek
Last edited Jan 10, 2023
Created on Apr 21, 2021
Forked from Customizing Axes

This scatterplot displays the population of the top four most populous countries, using a linear scale for the x-axis and a band scale for the y-axis. The graphic renders as horizontal bars, with each country’s bar length proportional to its population. The visualization is built with D3 v6, using `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the chart within an SVG element. Data is loaded from a CSV file and formatted with D3’s `format` function, with gridlines and axis labels styled via CSS.

AI-generated description
MIT Licensed

Similar vizzes