Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment_Task1Q1

Public visualization

Viewing a saved revision (read-only)

fb0927231da04005950ad908c383725d

Assignment_Task1Q1

0 stars0🌍 Public
Ddineshnimmagadda1@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This visualization shows the populations of ten countries in the year 2000, sorted in descending order, using horizontal bars with the country names listed on the left y-axis. The data comes from a CSV file loaded via `d3.csv`, and the chart is rendered as SVG within a React component. It uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and `d3.max` to determine the domain. Custom React components define the axes and marks, with bars styled using SVG `<rect>` elements and tooltips provided by the native `<title>` element.

AI-generated description