Skip to main content
100%

Fork of Making bar chart

✓ Published0🌍 Public
HHassan Abdullah
Last edited Dec 4, 2021
Created on Dec 4, 2021
Forked from Making bar chart

This example presents a horizontal bar chart ranking countries by population, using a fork of a D3 bar-chart template. It shows the data from `data.csv` with D3 v5, mapping population values to bar lengths and country names to vertical bands. The visualization is rendered as an SVG, with a linear scale for the x-axis and a band scale for the y-axis. It utilizes `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the chart, gridlines, and labels, styled via CSS with custom tick and title fonts.

AI-generated description
MIT Licensed

Similar vizzes