🌍 Public
Viewing a saved revision (read-only)
6f53e5ade2bb46c1a56bf11b4d936c66
question2.1
This visualization shows a stacked bar chart of the Iris dataset, displaying the total sepal and petal measurements for each species. The chart uses d3.stack() to aggregate the four numerical attributes into color-coded segments per species, with a tooltip showing individual segment values on hover. The visualization renders with SVG, using d3.scaleOrdinal for colors, d3.scaleBand for the species axis, and d3.scaleLinear for the measurement axis. A legend identifies each attribute, and the data is loaded from an external CSV file using d3.csv.
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.