Skip to main content
100%

Activity6_question-1

✓ Published0🌍 Public
Aamulyareddykondru01@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart ranking the populations of ten countries in the year 2000, with countries listed on the y-axis and population values on the x-axis. The chart uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` for positioning, and custom React components for the axes and marks. Data is loaded from a remote CSV file via `d3.csv`. Bars are colored green, and hovering over a bar displays its population value using a native SVG `<title>` tooltip, with tick labels formatted in billions using `d3.format`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes