Skip to main content
100%

task1_supriya

✓ Published0🌍 Public
SSupriya Ravilla
Last edited Apr 8, 2024
Created on Apr 8, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the populations of 30 countries in 2020, with each bar labeled by country name. The visualization uses D3.js v5 scales (`scaleBand` for the y-axis and `scaleLinear` for the x-axis) to map data, and React to render SVG elements. Population values are fetched from a CSV file and formatted using D3's `format` function, with tooltips displaying the numeric value when hovering over a bar. The chart includes styled axes and a labeled x-axis, all rendered within an SVG container.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes