Skip to main content
100%

Task8_Question4

✓ Published0🌍 Public
Jjyothirmaijyothi2017@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This D3.js bubble chart compares cereal products by their rating, calorie count, and manufacturer. Each circle’s position encodes rating on the x-axis and calories on the y-axis, while its radius encodes sodium level. The color of each bubble represents the manufacturing company. The visualization includes legends for both color and bubble size. Built with D3 v7 using an SVG rendering, the code relies on `d3.csv`, `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.schemeSet1`. Hovering over a bubble changes its stroke color to red. The data comes from a local CSV file listing cereal brands and their nutritional metrics.

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