Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Polt

Public visualization

Viewing a saved revision (read-only)

9af7594885b84c36b0e688e8b1479727

Scatter Polt

0 stars1🌍 Public
Ccpsshan
Last edited Jul 15, 2019
Created on Jul 15, 2019
Forked from Scatter Polt

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