Skip to main content
100%

Bar Chart with react and D3

✓ Published1🌍 Public
Yyastika
Last edited May 26, 2021
Created on May 18, 2021

This bar chart displays the number of patients across different states and union territories in 2016, sourced from a CSV file about cervix uteri cancer. The visualization uses D3’s `csv` utility for data loading and `scaleBand` and `scaleLinear` to map the state names and patient counts to SVG rectangles. React handles the rendering, with a `useEffect` hook to fetch data asynchronously and a state variable to trigger the chart’s display once the data arrives.

AI-generated description

A program that loads in some data about css named colors using D3 utilities, and uses React to render the data.

MIT Licensed

Similar vizzes