Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity 6_Task 1

Public visualization

activity 6_Task 1

0 stars1🌍 Public
Aasheshpinisetti@my.unt.edu
Last edited Apr 15, 2024
Created on Apr 15, 2024

This example shows a horizontal bar chart of the 2020 populations of 30 countries, with bars sorted by country name. The chart is built using React and D3 v5, with SVG rendering. It uses `d3.csv` to load data from a remote CSV file, `d3.scaleBand` and `d3.scaleLinear` for the axes, and a custom `Marks` component to render the bars. The bars display population values, with a tooltip showing the formatted number, and the y-axis labels list country names.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed