Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ice6

Public visualization

Viewing a saved revision (read-only)

0419a667352949eface3a316f6b57edc

ice6

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

This visualization displays a horizontal bar chart of the top 10 most populous countries, using data loaded from a CSV file via `d3.csv`. The chart maps selling price to the y-axis with `d3.scaleBand` and year to the x-axis with `d3.scaleLinear`, rendering bars as SVG rectangles. The React component manages state with `useState` and `useEffect`, while D3’s `max` and `format` handle data scaling and tick labels.

AI-generated description

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

See also React Starter.