Skip to main content
100%

Task2 Question 1

✓ Published0🌍 Public
Vvishu.valandas@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Task2

This visualization displays the stacked percentages of iris flower characteristics, broken down by passenger ID, as horizontal bars. The chart uses D3.js (v7) with an SVG renderer, employing the `d3.stack()` function to create the stacked segments and `d3.scaleOrdinal()` for color mapping. It reads data directly from a passed dataset, calculating scales with `d3.scaleLinear()` for the x-axis and `d3.scaleBand()` for the categorical y-axis, and includes hover interactions that reduce rectangle opacity.

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