Skip to main content
100%

Activity - 6_Question - 1.2

✓ Published0🌍 Public
Pphanisrivinnakota@gmail.com
Last edited Apr 6, 2024
Created on Apr 6, 2024
Forked from HTML Starter

This example shows the population of 20 countries in 2010, rendered as a horizontal bar chart using React and SVG. The chart is built with D3’s `scaleBand` for the y-axis categories and `scaleLinear` for the x-axis values, with axis ticks formatted using D3’s `format` to abbreviate large numbers (e.g., “1.2B”). The data is loaded from a CSV via `d3.csv`, and each bar is a `<rect>` with a tooltip showing the exact formatted population value.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes