Skip to main content
100%

ICE6_Yash_BarChart

✓ Published0🌍 Public
YYash Raj Mathur
Last edited Mar 9, 2026
Created on Mar 9, 2026
Forked from React & D3 Starter

This example shows a bar chart of city populations, with ten bars of increasing height from left to right. The visualization uses D3 v7 within a React framework, rendering SVG rectangles with an orange fill. The data is hardcoded in the script, and the chart uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with bar heights calculated from the population values. The React version loads CSV data from a gist and plots sepal length values instead.

AI-generated description
MIT Licensed

Similar vizzes