Task8_Question4
✓ Published0🌍 Public
This D3.js bubble chart compares cereal products by their rating, calorie count, and manufacturer. Each circle’s position encodes rating on the x-axis and calories on the y-axis, while its radius encodes sodium level. The color of each bubble represents the manufacturing company. The visualization includes legends for both color and bubble size. Built with D3 v7 using an SVG rendering, the code relies on `d3.csv`, `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.schemeSet1`. Hovering over a bubble changes its stroke color to red. The data comes from a local CSV file listing cereal brands and their nutritional metrics.
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.
MIT Licensed