Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE-6 bar graph

Public visualization

Fork of Fork of ICE-6 bar graph

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed