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