Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Assignment 6 updated -- Diverging bar chart with diverging color scale

Public visualization

Assignment 6 updated -- Diverging bar chart with diverging color scale

0 stars0๐ŸŒ Public
Vvishusikka
Last edited May 17, 2022
Created on May 17, 2022
Forked from Hello VizHub

This diverging bar chart visualizes net forest conversion by country, with bars extending right from a central zero axis for net gains (green) and left for net losses (red). The code uses D3 v6 to load CSV data via `d3.csv`, scale linear and band axes, and applies the ColorBrewer RdYlGn color scheme through `colorScale.domain([-max, max])`. A tooltip displays each country's value on mouseover, and the chart labels each bar with its entity name.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed