Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

Untitled

0 stars4🌍 Public
RRatul R
Last edited Jul 8, 2019
Created on Jul 5, 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

Comments

Sign in to join the discussion.

MIT Licensed