Skip to main content
100%

bar chart

✓ Published1🌍 Public
GGlenn Henshaw
Last edited Sep 27, 2019
Created on Sep 27, 2019
Forked from bar chart

This example shows a horizontal bar chart comparing the VALUE of an unspecified indicator across several US states, with each bar labeled by state name. It loads data from a CSV file and uses D3 v5’s `scaleLinear` and `scaleBand` to map values and state categories to SVG rectangles. The chart renders with green bars, and an axis is generated using `d3.axisBottom`. The SVG output is driven by D3 selections and a simple data-join pattern.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes