Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bar chart

Public visualization

Viewing a saved revision (read-only)

3d47d950fdea4ad081b17bc9c8ad1b47

bar chart

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

This bar chart visualizes the VALUE column (counts of facilities) for nine U.S. states from a CSV data file, with states on the y-axis and values on the x-axis. Using D3 v5, the code employs `d3.scaleLinear` and `d3.scaleBand` to map data, and renders the chart as SVG rectangles. A bottom axis is generated via `d3.axisBottom`, and the chart uses the first color from a predefined color array. The data is loaded asynchronously with `d3.csv` and parsed to numeric values.

AI-generated description

An example showing the capabilities of VizHub.