Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
LLucas Meirelles
Last edited Aug 14, 2020
Created on Aug 14, 2020

This example displays a horizontal bar chart of country populations. The chart uses a linear scale for the population axis and a band scale for country names, with bars colored steelblue. The code loads data from a CSV file, converts the population values from strings to numbers, and multiplies by 1000. It uses D3 v5 with SVG rendering, building the visualization through API functions like `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`.

AI-generated description
MIT Licensed

Similar vizzes