Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Victory!

Public visualization

Fork of Victory!

0 stars0🌍 Public
Pparkseora
Last edited Dec 25, 2020
Created on Dec 25, 2020
Forked from Victory!

This example uses React hooks and Victory Charts to load a CSV file and render a bar chart comparing gender counts. The `useState` and `useEffect` hooks fetch `pivot_gender.csv` via d3’s `csv` function, parsing the numeric `value` column, then pass the data to `VictoryBar` inside a `VictoryChart`. The chart displays two bars for male (23) and female (15), with a custom tick label style and domain padding.

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