Skip to main content
100%

Question2_Sivani

✓ Published0🌍 Public
Kkommineniamarasadasivani2002@gmail.com
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

This visualization uses a stacked horizontal bar chart to show the percentage distribution of the iris dataset attributes (sepal length, sepal width, petal length, and petal width) across three iris species. The D3.js v7 code loads data from a CSV file and uses `d3.stack()` to compute the stacked values, with `d3.scaleBand()` for the categorical y-axis and `d3.scaleLinear()` for the percentage x-axis. An interactive tooltip displays the exact percentage value when hovering over each segment, while the color scale assigns distinct colors to each attribute.

AI-generated description
MIT Licensed

Similar vizzes