Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Diverging bar chart

Public visualization

Diverging bar chart

0 stars1🌍 Public
Pprateekvasi
Last edited May 17, 2022
Created on Mar 3, 2022

This diverging bar chart visualizes net forest conversion across countries, with bars extending to the right for net gains and to the left for net losses. The visualization uses a diverging color scale from the ColorBrewer RdYlGn palette to encode the magnitude and direction of change. Entities are labeled directly within the chart, and hovering over a bar reveals a tooltip with the exact value. The chart is rendered as an SVG using D3.js v6, with scales defined via `d3.scaleLinear` and `d3.scaleBand`, and data loaded asynchronously from a CSV file using `d3.csv`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed