Skip to main content
100%

Fork of Victory!

✓ Published0🌍 Public
NNathan Orris
Last edited Feb 5, 2021
Created on Feb 5, 2021
Forked from Victory!

A bar chart displays population estimates for a selection of countries, loaded from a CSV file. Using React hooks, the `useEffect` hook fetches the data with `d3.csv` and stores it in state. The chart is rendered with Victory Charts, specifically `VictoryChart` and `VictoryBar`, mapping country names to population values. The visualization updates asynchronously after the data loads, styled with custom padding and tick label settings.

AI-generated description

This example shows how to load data from a CSV file using React hooks and visualize the result using Victory Charts. Inspired by this Victory example from Swizec Teller in React for Data Visualization.

MIT Licensed

Similar vizzes