Skip to main content
100%

D3 Sequential Color Bar Chart

✓ Published2🌍 Public
Mmariahdiaz
Last edited Oct 3, 2022
Created on Oct 1, 2022
Forked from D3 Bubble Chart

This bar chart displays natural gas consumption by the electric power sector across eleven U.S. states, with each bar’s length encoding the consumption value in billion BTU. A sequential color scale using `d3.scaleSequential` and `d3.interpolatePuRd` maps higher consumption to darker hues, with a `d3.legendColor` legend clarifying the gradient. The chart is rendered as SVG using D3 v7, with axes created via `d3.axisBottom` and `d3.axisLeft`, and data loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes