Activity06 Question 4.9
✓ Published1🌍 Public
This bubble chart visualizes the correlation between price, battery life, and weight for various smart devices. Each circle's x-position maps to price, the y-position to battery life, and the radius to weight, with color encoding the device brand. The visualization uses D3 v7 to create an SVG, employing `d3.scaleLinear` for axes and bubble size, `d3.scaleOrdinal` for color, and `d3.axisBottom`/`d3.axisLeft` for axis ticks. Data is loaded from a local CSV file, and a legend explains the weight scale and brand colors.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed