Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question1.1

Public visualization

Activity6_Question1.1

0 stars0🌍 Public
Ggnitishreddy0245@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024

This visualization is a horizontal bar chart that displays the population of ten countries in the year 2000. The chart ranks the countries by population, with bars extending from the left axis, and it uses a tooltip to show the exact population value for each bar. The visualization is rendered as an SVG using React and D3 v5. The code uses D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with data loaded via `d3.csv` from a remote GitHub source. The `AxisBottom`, `AxisLeft`, and `Marks` components are custom React components that generate ticks and rectangles for the chart.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed