Skip to main content
100%

assign3-4

✓ Published0🌍 Public
Ppardha1411
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This bubble chart compares cereal manufacturers by plotting their products' ratings against sodium levels. Each bubble's position encodes the rating (x-axis) and sodium content (y-axis), while its radius represents calorie count through a linear scale, and its color indicates the manufacturer using a categorical ordinal scale with the `schemeSet1` palette. The visualization, built with D3 v7, uses `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.axisBottom`/`d3.axisLeft` to render the SVG, with legends for both bubble size and manufacturer colors. Data comes from a local CSV file loaded via `d3.csv`.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes