Skip to main content
100%

Assignment2_Q4

✓ Published0🌍 Public
HHemanthh81
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Bubble Chart

This bubble chart visualizes cereal manufacturers’ products by plotting sodium levels on the x-axis against cereal ratings on the y-axis, with circle radius encoding calorie content and color distinguishing manufacturers (A, G, K, N, P, Q, R). The visualization uses D3 v7 with SVG rendering to create the scatterplot, axes, and legends. The code employs d3.scaleLinear for positioning and sizing, d3.scaleOrdinal with d3.schemeSet1 for categorical colors, and d3.axisBottom and d3.axisLeft for axes. Data comes from the included data.csv file, and both bubble size and color legends are rendered directly in the SVG.

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