Skip to main content
100%

Activity 6.12

✓ Published1🌍 Public
VVenkataSatyaRamKamini@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This bar chart displays the population of 20 countries in 2010, ordered along a vertical axis with horizontal bars extending from a shared baseline. The visualization uses React to render SVG elements, with D3's `scaleBand` and `scaleLinear` mapping country names and population values to pixel coordinates. Axes are drawn using custom `AxisBottom` and `AxisLeft` components, while the `Marks` component generates rectangles with native SVG tooltips. Data is loaded asynchronously from a CSV file via `d3.csv`, with population values converted from thousands using D3's `format` helper.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes