Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

question2.1

Public visualization

question2.1

0 stars0๐ŸŒ Public
NNagalakshmi Thota
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Hello VizHub

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 description

Comments

Sign in to join the discussion.

MIT Licensed