Skip to main content
100%

Activity 6-Question 4

✓ Published0🌍 Public
Ttallapanenisahithi@gmail.com
Last edited Oct 24, 2024
Created on Oct 22, 2024
Forked from Activity 6-task 4

This bubble chart shows the correlation between average weight, average sugar, and calories per serving for various food items, with each circle's x-position mapping to weight, y-position to sugar, and radius to calorie count. A legend on the right decodes the circle sizes for calorie values, while a categorical color scale distinguishes the 20 food items. Interactive tooltips display exact values for each food on hover. Built with D3 v7, the visualization uses `d3.scaleLinear` for axes and radius, `d3.scaleOrdinal` with `d3.schemeCategory10` for colors, and `d3.axisBottom`/`d3.axisLeft` for chart axes. The data, loaded from `fooditems.csv`, is rendered as SVG circles with a black tooltip that follows the mouse.

AI-generated description
MIT Licensed

Similar vizzes