Skip to main content
100%

Fork of React & D3 Starter

✓ Published2🌍 Public
Llohithkumar51001@gmail.com
Last edited May 1, 2026
Created on Apr 10, 2026
Forked from React & D3 Starter

A bar chart displays average salary by country, parsed from a GitHub Gist CSV or TSV file via `d3.text` and `d3.csvParse` or `d3.tsvParse`. It aggregates data with `d3.rollup` and `d3.mean`, then sorts countries using `d3.descending`. The visualization uses D3 v7 scales (`d3.scaleBand`, `d3.scaleLinear`, `d3.scaleOrdinal`), axes, and SVG rectangles. Interactive tooltips appear on `mousemove`, while a separate HTML legend is built with D3 selections.

AI-generated description
MIT Licensed

Similar vizzes