Fork of Axes with React & D3
✓ Published0🌍 Public
This example displays the top 10 most populous metropolitan areas by their 2020 cost of living, shown as a horizontal bar chart. It uses React for component state and rendering, while D3 v5's `scaleBand` and `scaleLinear` handle the axis scales and `max` determines the domain. The SVG chart includes a labeled x-axis with ticks and a y-axis of metro names. Data is loaded from a CSV via `d3.csv`, and the code combines React hooks like `useState` and `useEffect` with D3's functional APIs.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed