Skip to main content
100%

Fork of barchart

✓ Published1🌍 Public
Bbharathavulapati@gmail.com
Last edited Mar 25, 2025
Created on Mar 24, 2025

This bar chart visualizes total fruit yield from 2014 to 2024, with each bar representing a fruit type and its summed yearly values. Built using React and D3 v5, it loads CSV data via `d3.csv`, processes the data with `useState` and `useEffect`, and renders bars with `scaleBand` and `scaleLinear`. Axes are created using `axisLeft` and `axisBottom`, while React’s `createElement` constructs the SVG elements, including axis labels and green rectangles for the bars.

AI-generated description
MIT Licensed

Similar vizzes