Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

RT15

Public visualization

Viewing a saved revision (read-only)

b84a1a5857e049d59eb26583c1c4e8a8

RT15

0 stars0🌍 Public
Ttelkapallyrekha@gmail.com
Last edited Mar 21, 2024
Created on Mar 20, 2024
Forked from Stylized Bar Chart

The visualization displays cotton production across different countries using a horizontal bar chart, with each bar representing a nation’s output in metric tons. The chart highlights production quantities through bar lengths, colored steelblue with hover effects that lighten the bars. It uses D3 v7 to parse CSV data from a remote URL, then applies `d3.scaleBand` for country categories and `d3.scaleLinear` for production values. The SVG rendering includes labeled axes, a title, and subtitle, with data loaded asynchronously via the Fetch API and parsed manually into arrays.

AI-generated description