🌍 Public
Viewing a saved revision (read-only)
ca50adccf9b74bdab266f2d8c56008b5
Question2_Sivani
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