Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bar chart

Public visualization

Viewing a saved revision (read-only)

3566f44d0c6f43e98b7d354a922cc08f

bar chart

0 stars1🌍 Public
GGlenn Henshaw
Last edited Sep 27, 2019
Created on Sep 26, 2019
Forked from bar chart

This example displays a horizontal bar chart comparing state values from a CSV dataset. The chart uses D3 v5 APIs including `d3.csv`, `scaleLinear`, `scaleBand`, and `axisBottom` to map state abbreviations to proportional bar widths along an x-axis. Bars are rendered as SVG rectangles with fixed color fills, while the axis label appears at the bottom. The data source is a local CSV file containing state statistical indicators for 2004.

AI-generated description

An example showing the capabilities of VizHub.