🌍 Public
Viewing a saved revision (read-only)
374526f912ac4547ab84cd209e30ccab
Fork of Scatter Plot for Vegetables in USA
NNita
Last edited Mar 25, 2025
Created on Mar 25, 2025
This D3.js (v5) visualization displays the relationship between vegetable price and weight as a scatter plot, with each point colored by the first letter of the vegetable’s name. It includes axis labels, grid lines, and a tooltip on hover. The chart loads CSV data via `d3.csv` and renders with SVG, featuring interactive legend filtering by group and animated transitions through `d3.transition`. The layout is created using `d3.scaleLinear` for both axes and `d3.schemeCategory10` for color mapping.
AI-generated description