Q4
✓ Published0🌍 Public
This D3.js bubble chart visualizes the classic Iris dataset, plotting sepal length on the x-axis, sepal width on the y-axis, and encoding petal length through bubble radius. Each of the 150 flowers is colored by its species (setosa, versicolor, or virginica) using a categorical color scale, with a legend positioned to the right. The SVG chart includes interactive hover tooltips that display species and measurement details. The code loads data via `d3.csv`, uses `d3.scaleLinear` for axes and bubble sizing, and `d3.schemeCategory10` for color assignment, with animated tooltip transitions.
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