Skip to main content
100%

Simple bar chart with custom axes

✓ Published1🌍 Public
RRodolfo Viana
Last edited Dec 29, 2020
Created on Dec 27, 2020
Forked from Simple bar chart

A simple bar chart displays the ten most populous countries using population data from a CSV file, with country names on the y-axis and population values on the x-axis. The chart uses custom axes that convert large numbers from the d3.format('.3s') format (such as G for billions) to B for billions, and removes the default axis domain lines. Built with d3.csv, scaleLinear, scaleBand, axisLeft, and axisBottom, the visualization renders red bars in an SVG element with a Roboto Mono font and a title in Portuguese.

AI-generated description
MIT Licensed

Similar vizzes