question 4
✓ Published0🌍 Public
This example visualizes the correlation between iris flower measurements using a bubble chart, plotting sepal length against sepal width while encoding petal length through bubble size and species through color. It loads data from a CSV file and renders with D3 v7, using `d3.scaleLinear` for axes and bubble radius, `d3.scaleOrdinal` with custom colors for species, and `d3.axisBottom`/`d3.axisLeft` for scales. Interactive tooltips appear on mouseover via D3 event handlers, displaying species and petal length, alongside a legend for species identification.
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