Skip to main content
100%

Activity_6_Task_2_Q2

✓ Published0🌍 Public
PPradhyumna Poralla
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This visualization uses a stacked bar chart to show petal lengths for different Iris flower species. The code renders horizontal bars for sepal width, petal length, and petal width, with color-coded segments for each species. It employs D3.js v7 with d3.stack for data transformation, d3.scaleBand for the y-axis, and d3.axisBottom for the x-axis. Interactive tooltips display petal length values on mouseover, using d3.select and event handlers. The data comes from the Iris flower dataset, with SVG rendering.

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