Skip to main content
100%

Making a Bar Chart v2

✓ Published1🌍 Public
HHe Jianfeng
Last edited Apr 7, 2021
Created on Apr 7, 2021
Forked from Making a Bar Chart

A horizontal bar chart displays the population of the top ten most populous countries, using a dataset loaded from a local CSV file. The chart uses D3 v6 with `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` for tick marks. An `axis-label` and title are added as SVG text, while the x-axis tick format converts numbers to abbreviated units (e.g., "B" for billions). The rendering is entirely SVG-based with a styled stylesheet.

AI-generated description
MIT Licensed

Similar vizzes