Bubble Chart
✓ Published0🌍 Public
This bubble chart compares 77 cereals by sodium level and rating, with bubble size representing calorie count and color indicating the manufacturer (from data.csv). The visualization renders as an SVG via D3 v7, using d3.csv to load the data, d3.scaleLinear for x/y position and bubble radius, and d3.scaleOrdinal with d3.schemeSet1 for color encoding. It also includes a custom calorie-size legend and a manufacturer color legend built with circle and text elements.
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