Skip to main content
100%

Activity6_Task1

✓ Published1🌍 Public
LLokesh Madem
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

A horizontal bar chart displays the populations of ten countries in the year 2000, sourced from a CSV file. It uses a React with D3 v5 approach, rendering SVG via `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Green bars encode values formatted with D3's `format` function, converting abbreviations like 'G' to 'B'. Native SVG `<title>` elements provide tooltips with the formatted population values, while axes are generated from `xScale.ticks()` and the domain.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes