Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making a bar chart

Public visualization

Viewing a saved revision (read-only)

e38e213e5da34becb5b76189fe3f3d32

Fork of Making a bar chart

0 stars0🌍 Public
Llinyyyyyyyyy
Last edited Dec 3, 2022
Created on Dec 3, 2022
Forked from Making a bar chart

This horizontal bar chart displays population figures for ten countries, using data from a CSV file with populations scaled by a factor of one thousand. The visualization relies on D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the y-axis, with SVG rectangles representing each country’s value. Axes are generated via `axisBottom` and `axisLeft`, while tick labels are formatted using `format` to abbreviate numbers, and gridlines are styled through CSS. The chart includes custom axis titles and a chart title, all rendered as SVG elements.

AI-generated description