Skip to main content
100%

Activity6_Task1_Q1.1

✓ Published1🌍 Public
Ggreeshmareddy135@gmail.com
Last edited Apr 6, 2024
Created on Apr 4, 2024
Forked from Activity 7

This example shows the ten most populous countries in the year 2000 as a horizontal bar chart ordered by country name, with each bar’s length representing population in billions. The visualization uses React components to render SVG rectangles and axes, with D3 v5’s `scaleBand` and `scaleLinear` computing positions and scales. Data comes from a remote CSV loaded via `d3.csv`. The y-axis labels country names, while the x-axis formats tick values using D3’s `format` with a custom abbreviation replacing ‘G’ with ‘B’. Axis components (`AxisBottom`, `AxisLeft`) and `Marks` display the chart, including tooltips via SVG `<title>` elements.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes