🌍 Public
Viewing a saved revision (read-only)
da42c8e13886471d9f489089257abb2b
Acitivity6 Q9
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.