Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

sekhar que2

Public visualization

Viewing a saved revision (read-only)

0b044a95d05847289d54d3dc41b66b58

sekhar que2

0 stars0🌍 Public
SSekharofficial2022@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This example from the VizHub gallery visualizes the percentage composition of the Iris dataset across its three species. The horizontal stacked bar chart displays each species as a bar, with segments representing the proportional measurements of sepal length, sepal width, petal length, and petal width. Built with D3 v7, the visualization uses `d3.stack()` for stacking, `d3.scaleLinear()` and `d3.scaleBand()` for axes, and includes interactive tooltips on mouseover that show precise percentage values for each segment. The data is loaded from an included CSV file.

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.