Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Victory!

Public visualization

Viewing a saved revision (read-only)

72171854073b4dcabc7d3e5fb0acb4cc

Fork of Victory!

0 stars0🌍 Public
Nnims27
Last edited Sep 1, 2021
Created on Sep 1, 2021
Forked from Victory!

This example displays a vertical bar chart of country populations, using a red and gray color scheme with bars sorted by population descending. It loads data from a CSV file via React hooks, specifically using `useState` and `useEffect`, and renders the visualization with Victory Charts. The code imports `csv` from d3.v5 to parse the data, converts the population values to numbers, and passes the result to a `VictoryBar` component within a `VictoryChart`.

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.