Fork of Fork of ICE-6 bar graph
✓ Published1🌍 Public
This example shows a horizontal bar chart ranking twelve cities by their pollution index scores from the “Healthy lifestyle city 2021” dataset, with blue bars and labeled axes. It uses React to manage state via useState and useEffect, loading data with d3.csv. The chart is rendered as an SVG, using d3.scaleBand for the y-axis city labels, d3.scaleLinear for the x-axis pollution values, and d3.max to set the domain.
AI-generated descriptionA whole smiley face
MIT Licensed