Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Sequential Color Bar Chart

Public visualization

D3 Sequential Color Bar Chart

0 stars2🌍 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

Comments

Sign in to join the discussion.

MIT Licensed