Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Diverging Bar chart in D3

Public visualization

Viewing a saved revision (read-only)

48fbaef093704395953f94675a4a111a

Diverging Bar chart in D3

0 stars1🌍 Public
EEunice Tu
Last edited Apr 10, 2024
Created on Mar 2, 2024

A diverging bar chart displays the population percent change across U.S. states, using the State Demographic dataset from the U.S. Census Bureau. The chart shows each state’s population change from April 1, 2020 to July 1, 2019, with positive changes extending right and negative changes extending left from a central zero axis. D3 v7’s `scaleLinear`, `scaleBand`, and `scaleSequential` with an `interpolateRdBu` color scheme map values to positions and colors, while the `d3.legend` plugin adds a color legend. Data is loaded as CSV via `d3.csv` and rendered as SVG rectangles.

AI-generated description