🌍 Public
Viewing a saved revision (read-only)
abb55bc1279f4c639bf0700c613fe757
Bubble Chart
This bubble chart compares cereal manufacturers by plotting each product’s sodium level on the x-axis, its rating on the y-axis, and its calorie count as the bubble radius. Manufacturers are distinguished by color using `d3.scaleOrdinal` with the `d3.schemeSet1` palette. The code loads data from a CSV file, builds the visualization with SVG, and includes legends for both bubble size and color. All axes, scales, and labels are created using standard D3 v7 methods such as `d3.scaleLinear` and `d3.axisBottom`.
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.