Skip to main content
100%

Fork of Fork of ICE-6 bar graph

✓ Published1🌍 Public
TTekmal-Bhavana
Last edited Mar 22, 2023
Created on Mar 22, 2023

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 description

A whole smiley face

MIT Licensed

Similar vizzes