Skip to main content
100%

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

✓ Published0🌍 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
MIT Licensed

Similar vizzes