Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
AAshutosh Singh
Last edited Jan 25, 2021
Created on Jan 25, 2021
Forked from Scatter Plot

This scatter plot displays the top 10 most populous countries using circular marks, with population on the x-axis and country names on the y-axis. The visualization uses D3 v6’s `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` to map data from a CSV file, with a `.nice()` function for rounded tick values. Circle elements are appended to an SVG, and axes include tick lines and formatted labels that convert large numbers to billions. The chart’s title and axis label are added as text elements, while the data is loaded asynchronously via `csv()`.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes