Skip to main content
100%

Making a Barchart

✓ Published3🌍 Public
NNoWizards
Last edited Mar 14, 2020
Created on Mar 9, 2020
Forked from Using SVG and D3

A bar chart displays the frequency of each letter in the English alphabet. The chart uses D3 v5’s `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with data loaded via `d3.csv`. Two additional axes show the same data with different scales: a right y-axis uses a scale from 0 to 100, while the primary left y-axis displays percentages with ten ticks. Bars are rendered as SVG rectangles, styled with the CSS class `bar`, and turn brown on hover. Data comes from the letters’ frequency in the CSV file.

AI-generated description

Bar chart to display population data of most populated countries in the world United Nations: world population prospects 2017 page.

MIT Licensed

Similar vizzes