Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Test Bar chart

Public visualization

Viewing a saved revision (read-only)

e4fa27372f4d4946b0a8766a13037acd

Test Bar chart

0 stars0🌍 Public
Kkkkk
Last edited Jan 29, 2020
Created on Jan 28, 2020
Forked from Test Bar chart

This bar chart visualizes water withdrawal amounts for a selection of countries, sorted in descending order from largest to smallest. The chart is rendered as an SVG using D3 v5, with the data loaded from a CSV file via `d3.csv` and laid out using `scaleLinear` and `scaleBand`. The visualization uses `Promise.all` to load two datasets simultaneously, though only the water withdrawal data is displayed. Axes are generated with `axisLeft` and `axisBottom`, while `d3.descending` handles the sort order.

AI-generated description