Fork of Fork of React & D3 - Bar Chart with actual Axes and Margin
✓ Published0🌍 Public
NNika
Last edited Apr 5, 2021
Created on Apr 5, 2021
This interactive bar chart displays UN population data for a selected year, with bars colored on a red-to-green scale using `d3.interpolateHcl`. A numeric input changes the year, re-rendering the visualization. The React app uses `d3.csv` to fetch data and `d3.scaleLinear` and `d3.scaleBand` for axes. Custom SVG components render the bottom and right axes, while `<rect>` elements in `Marks.js` draw the bars.
AI-generated descriptionMIT Licensed