🌍 Public
Bar Chart with react and D3
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 descriptionA program that loads in some data about css named colors using D3 utilities, and uses React to render the data.
MIT Licensed
Comments
Sign in to join the discussion.