Skip to main content
100%

Scatter Polt

✓ Published1🌍 Public
Ccpsshan
Last edited Jul 15, 2019
Created on Jul 12, 2019

This scatter plot displays the population of the top ten countries, with each circle positioned along a categorical y-axis for country names and a linear x-axis for population values. The visualization uses D3 v5’s `scaleLinear` and `scalePoint` to map data, with `axisBottom` and `axisLeft` generating gridlines. Circles are appended as SVG elements, and the x-axis tick format abbreviates numbers (e.g., "1.35B") via `d3.format`. Population values from the CSV are multiplied by 1000 during preprocessing. The chart is rendered entirely with SVG within a fixed 960x500 canvas, using margins and a translated group for layout.

AI-generated description
MIT Licensed

Similar vizzes