Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Yyktan89
Last edited Jan 15, 2020
Created on Jan 14, 2020
Forked from Making a Bar Chart

This example shows a bar chart ranking the populations of 18 countries, with the data sourced from a DataHub CSV file. The chart uses D3 v5's `scaleBand` for the categorical country axis and `scaleLinear` for the continuous population axis, rendering purple rectangles in an SVG. The code includes data parsing with `csv` and population values converted to thousands for display. A simple "Hello World" text label is appended to the chart, while axes and labels are generated using the `axisBottom` and `axisLeft` functions.

AI-generated description
MIT Licensed

Similar vizzes