Skip to main content
100%

Question2_Task2

✓ Published0🌍 Public
NNagalakshmi Thota
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Hello VizHub

A stacked bar chart visualizes the distribution of three iris species (setosa, versicolor, virginica) across sepal length values. The chart uses d3.csv to load the Iris dataset and d3.stack to create the stacked series, with d3.scaleOrdinal for color mapping. Each bar segment’s height represents the sepal width contribution per species, rendered as SVG rectangles via D3’s data joins and axis scales (d3.scaleBand, d3.scaleLinear). A legend identifies species colors.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes