Skip to main content
100%

Make a Bar Chart

✓ Published0🌍 Public
Aalibabagalaxy
Last edited Nov 12, 2020
Created on Nov 12, 2020
Forked from Make a Face

This example displays a horizontal bar chart of population counts for ten countries, using a CSV dataset. The visualization maps population to bar width and country names to row position via D3’s `scaleLinear` and `scaleBand`, with margins and axes generated by `d3.axisLeft` and `d3.axisBottom`. Bars are appended as SVG `rect` elements, colored steelblue, and the chart updates through a data join after parsing numeric values from the CSV file.

AI-generated description
MIT Licensed

Similar vizzes