Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

rao

Public visualization

Viewing a saved revision (read-only)

f9016a4f5e3c4beca01517fe2b4f9feb

rao

0 stars0🌍 Public
RRakshithaRao27
Last edited Mar 6, 2022
Created on Mar 6, 2022

This example displays a horizontal bar chart of the top 10 most populous countries, ranking them by the number of deaths in India. The visualization uses React to manage state and render the SVG, while D3 v5 handles data loading, scales, and axes. The code fetches data from a CSV file using `d3.csv`, then applies `scaleBand` for the categorical country axis and `scaleLinear` for the numeric death count axis, drawing rectangles for each bar.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.