Skip to main content
100%

ICE 6

✓ Published0🌍 Public
CCharith Kapuluru
Last edited Oct 20, 2025
Created on Oct 20, 2025
Forked from D3 Starter

This example shows a bar chart of GDP in billion USD for various countries in 2024. The bars are sorted in descending order and colored a uniform blue, with a tooltip revealing each country's exact value. The visualization is rendered as an SVG using D3 v7. The code loads data from a CSV file, processes it with `d3.csv`, and uses `d3.scaleBand` and `d3.scaleLinear` to map country names and GDP values to positions. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, with rotated country labels for readability.

AI-generated description
MIT Licensed

Similar vizzes