Skip to main content
100%

Fork of Making a bar chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes