Skip to main content
100%

Untitled

✓ Published0🌍 Public
RRatul R
Last edited Jul 8, 2019
Created on Jul 8, 2019
Forked from Untitled

This example shows the populations of the ten most populated countries as horizontal bars, sorted by size with a linear scale for population and a band scale for country names. The code loads data from a CSV file using d3.csv, converts population figures, and renders the chart as SVG. It uses d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom, with custom tick formatting for readability. The bars are styled in steelblue, with axis labels and titles formatted via d3.format.

AI-generated description

Simple Bar Chart

MIT Licensed

Similar vizzes