🌍 Public
Viewing a saved revision (read-only)
920a521e579648ceb7a414c4ce4edea3
Activity 6_Question-4
This example demonstrates a bubble chart that visualizes the relationship between the sweetness, sourness, and size of various fruits. The chart encodes sweetness on the x-axis, sourness on the y-axis, and size as the radius of each circle, with colors distinguishing fruit types. The data is loaded from a local CSV file, and the visualization is built using D3 v7 with SVG rendering. The code employs D3 scales for positioning and sizing, along with axis generators and a custom legend.
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.