Acitivity6 Q9
✓ Published0🌍 Public
This bubble chart displays the correlation between grams sold, cost per gram, and total cost for various lentil types. The x-axis represents grams sold, the y-axis shows cost per gram, and the size of each circle encodes the total cost, while color distinguishes each lentil variety. Hovering over a bubble reveals a tooltip with the item’s name. The chart uses d3.csv to load data, d3.scaleLinear for axes and bubble sizing, d3.interpolateTurbo for color mapping, and SVG rendering with mouse event handlers for interactions.
AI-generated descriptionMIT Licensed