Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity 6_Task 1

Public visualization

Viewing a saved revision (read-only)

96f00a8e46564a73b967784b0229c15e

Fork of Activity 6_Task 1

0 stars0🌍 Public
Kkotagirivarshith2411@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Activity 6_Task 1

This example presents a horizontal bar chart showing population by country, with each bar’s length encoding the population value and country names on the y-axis. The chart uses React to render SVG elements, with scales and axes created via d3.scaleBand and d3.scaleLinear. Data is loaded asynchronously from a CSV file using d3.csv, and population values are formatted using d3.format to display compact labels like billions. The visualization includes axis labels, tick marks, and styled bars with distinct colors.

AI-generated description