Skip to main content
100%

D3 Bubble Chart

✓ Published7🌍 Public
Mmariahdiaz
Last edited Nov 3, 2022
Created on Sep 27, 2022
Forked from Hello VizHub

This bubble chart compares cereal manufacturers by plotting the relationship between cereal rating (x-axis) and sodium levels (y-axis), with bubble size representing calorie content. The visualization uses circles colored by manufacturer via `d3.scaleOrdinal` with `d3.schemeSet1`, positioned using `d3.scaleLinear` for both axes. The data comes from `data.csv`, which contains manufacturer, rating, calories, and sodium values for 77 cereals. Circle sizes are scaled with a linear scale mapping calories to radius, and the chart includes legends for both bubble size and color, using D3 v7's `d3.select`, `d3.csv`, and `d3.axisBottom`/`d3.axisLeft` APIs to build the SVG graphic.

AI-generated description
MIT Licensed

Similar vizzes