srinivas que2
✓ Published0🌍 Public
A stacked horizontal bar chart displays the percentage distribution of iris flower measurements (sepal length, sepal width, petal length, petal width) across three species: setosa, versicolor, and virginica. The visualization uses d3.stack() to compute stacked series, d3.scaleBand() for the categorical y-axis, and d3.scaleOrdinal() with a custom color palette. A tooltip appears on mouseover to show the exact percentage for each segment. The data comes from the included iris.csv file.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed