Axes with React & D3
✓ Published1🌍 Public
A React component fetches United Nations population data for 2020 from a CSV file, displaying a horizontal bar chart for the top ten countries. The chart uses D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. D3's `scaleLinear.ticks()` generates tick values for the x-axis, which are rendered as SVG line and text elements within React's declarative JSX structure. The visualization demonstrates a manual approach to constructing axes and bars, avoiding D3's axis generator components.
AI-generated descriptionRadial colors!! A program that loads & renders in some [data about CSS named colors] (https://gist.github.com/curran/b236990081a24761f7000567094914e0) using D3 utilities, and uses React state to keep track of the data.
MIT Licensed