question2.1
✓ Published0🌍 Public
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 descriptionMIT Licensed