Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

e7771fc4f21c4e2397d267d66cb2bf47

Making a bar chart

0 stars1🌍 Public
SShanthi Acharya
Last edited Jun 9, 2019
Created on Jun 9, 2019
Forked from Making a bar chart

This example shows a horizontal bar chart of GDP for ten countries, with the bars sorted by value and labeled. The chart uses a linear scale for the GDP axis and a band scale for the countries, rendering as SVG within a 960x500 canvas. Built with D3 v5, it relies on `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, and formats GDP ticks via D3's `format`. Data is loaded from a CSV file with `d3.csv`.

AI-generated description