Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart of Fresh Vegetables in USA

Public visualization

Viewing a saved revision (read-only)

420538f92704487c98661306c5d1e49a

Bar chart of Fresh Vegetables in USA

0 stars3🌍 Public
NNagasharan Sai Nandyala
Last edited Mar 25, 2025
Created on Mar 25, 2025
Forked from Fork of barchart

A horizontal bar chart displays the price per pound of fresh vegetables in USD, using pink bars sorted by vegetable name. The visualization is built with React and D3 v5, leveraging `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `axisLeft`/`axisBottom` for tick marks. Data is loaded asynchronously from a CSV file via `d3.csv` and rendered as an SVG using `React.createElement`. Axis labels and a title provide context without interactive features.

AI-generated description