Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of barchart

Public visualization

Fork of barchart

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed