Skip to main content
100%

Activity-8_Question-2

✓ Published0🌍 Public
Hharipadmavathim2023@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example visualizes the Iris dataset as a stacked bar chart, showing the relative contributions of sepal length, sepal width, petal length, and petal width for each of the three species. It uses d3.csv to load the data and d3.stack to transform the four numeric columns into stacked series. The chart renders as SVG with d3.scaleBand and d3.scaleLinear axes, and includes an interactive hover effect that increases bar opacity. A color-coded legend identifies each measurement category.

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