Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Ssumaiyamahin
Last edited Sep 26, 2020
Created on Sep 26, 2020

This example shows a horizontal bar chart of yearly values from 2011 to 2015, with each bar’s length representing a numerical value. The chart uses an SVG rendering with D3 v6, applying `scaleLinear` for the x-axis, `scaleBand` for the y-axis categories, and `axisLeft` and `axisBottom` to draw the axes. Data is loaded from a CSV file via `d3.csv`, and rectangles are appended to the SVG to form the bars.

AI-generated description
MIT Licensed

Similar vizzes