Skip to main content
100%

Activity6_Task2 (question2)

✓ Published0🌍 Public
Gguruabhay294@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the mean measurements of sepal length, sepal width, petal length, and petal width for three iris species: setosa, versicolor, and virginica. Each horizontal bar represents a species, segmented into colored sections corresponding to each measurement type, with tooltips displaying exact mean values on hover. The visualization loads data from iris.csv using D3 v7, applying a linear scale for the x-axis and a band scale for the y-axis. It employs `d3.stack()` to compute stacked bar segments, `d3.scaleOrdinal()` for color encoding, and renders all elements as SVG with interactive mouseover tooltips.

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