Bar Chart!
✓ Published0🌍 Public
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 descriptionMIT Licensed