Skip to main content
100%

Activity6_Question4

✓ Published0🌍 Public
SSai Praveen Lokavarapu
Last edited Apr 6, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This bubble chart visualizes product data from a CSV file, plotting price on the x-axis against quantity sold on the y-axis. Each circle’s radius represents profit margin using `d3.scaleSqrt`, while color encodes the product category through `d3.scaleOrdinal` with `d3.schemeTableau10`. The SVG rendering uses `d3.axisBottom`, `d3.axisLeft`, and the `d3.select` and `.enter()` APIs to draw circles, with a custom HTML legend positioned in the upper right corner.

AI-generated description
MIT Licensed

Similar vizzes