bar chart
✓ Published1🌍 Public
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 descriptionAn example showing the capabilities of VizHub.
MIT Licensed