Adding Axes - Continuation of Making a Bar Chart with React & D3
✓ Published1🌍 Public
PPhronesis
Last edited Nov 17, 2021
Created on Nov 16, 2021
This example shows a bar chart of UN population data for 2020, rendered as an SVG using React and D3. It uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with custom `AxisBottom` and `AxisLeft` components generating tick marks and labels via React's SVG elements. The chart highlights the use of `csv` to load data and `max` to compute the domain, with bars colored randomly from a predefined palette.
AI-generated descriptionUsing React & D3 to render a bar chart of UN population data.
MIT Licensed