Skip to main content
100%

Q2 - Jaynica nunna

✓ Published1🌍 Public
Nnunnajaynica@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This visualization displays the percentage distribution of iris flower measurements across three species using a stacked horizontal bar chart. The chart encodes each species as a bar segment, with colors differentiating the four measurement attributes (sepal length, sepal width, petal length, petal width) as proportional parts of the whole. Built with D3.js v7, the code uses `d3.stack()` to compute stacked series, `d3.scaleLinear` and `d3.scaleBand` for axes, and `d3.scaleOrdinal` for color mapping. Interactive tooltips appear on mouseover, showing the exact percentage for each attribute segment. The data comes from the classic Iris dataset loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes