Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 task 2

Public visualization

Viewing a saved revision (read-only)

0b03e56b59224b23afba2b3bde3181a1

Activity 6 task 2

0 stars0🌍 Public
RRishabh Sharma
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This visualization shows the petal length distribution for three flower species (setosa, versicolor, and virginica) using a stacked bar chart. The horizontal bars display combined petal length values for each species. Built with D3.js v7, it uses `d3.stack()`, `d3.scaleLinear()`, `d3.scaleBand()`, and `d3.axisBottom()` to render SVG, with color encoding via `d3.scaleOrdinal()`. Interactive mouseover tooltips display exact petal lengths. The data originates from the iris dataset CSV file.

AI-generated description