Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart!

Public visualization

Bar Chart!

0 stars0🌍 Public
Rrandom-program
Last edited Nov 22, 2020
Created on Nov 22, 2020
Forked from Bar Chart!

This example shows a horizontal bar chart of deaths across Canadian provinces and territories, ordered from highest to lowest. The chart uses a linear scale for the x-axis and a band scale for the y-axis, with bars rendered as SVG rectangles. D3 v5 functions such as `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` load the data and generate the axes, while a custom tick formatter shortens large numbers. The visualization reads from an external CSV file and includes a title and axis label.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed