Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Victory!

Public visualization

Fork of Victory!

0 stars0🌍 Public
Rrahulmadnawat
Last edited Feb 23, 2021
Created on Feb 23, 2021
Forked from Victory!

A bar chart displays population data for ten countries from a CSV file, from China down to Mexico. The example uses React hooks, specifically `useState` and `useEffect`, to load the data with `d3.csv` and then passes it to `VictoryBar` within a `VictoryChart`. The chart is rendered using Victory’s React-based API, with D3 v5 handling the CSV parsing and numeric conversion.

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.

Comments

Sign in to join the discussion.

MIT Licensed