Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

c591b782c524479182c2609138ccca47

Making a Bar Chart

0 stars1🌍 Public
BBaraneedharan N M
Last edited Aug 19, 2020
Created on Aug 12, 2020

This example shows a horizontal bar chart of the top 10 most populous countries, using population data from a CSV file. It uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for positioning, and d3.axisLeft and d3.axisBottom to render axes with custom tick formatting. The bars are drawn as SVG rectangles with a steelblue fill, and the chart includes a title and axis labels.

AI-generated description