Avocados Scatter Plot
✓ Published0🌍 Public
This scatter plot displays weekly avocado sales, showing the relationship between total volume sold and average price from 2016 to 2018, with each circle colored by year. Data comes from the Hass Avocado Board dataset. The visualization uses D3 v5 with `scaleLinear` for axes, `scaleOrdinal` for color encoding, and `axisBottom`/`axisLeft` for ticks. The SVG rendering includes custom axis labels, a title, and a legend built from the color scale domain.
AI-generated descriptionThis plot shows the average cost of an avocado vs the total volume of avocados sold every week from 2016 to 2018, from Hass Avocado Board.
Thanks to Weijie Pang for the Legend code
MIT Licensed