Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_Task_2

Public visualization

Viewing a saved revision (read-only)

717d100a357b45c49e776f923b8ece13

Activity_6_Task_2

0 stars1🌍 Public
Ssuhaibuddinahmed10@gmail.com
Last edited Oct 19, 2024
Created on Oct 18, 2024

This stacked bar chart displays the percentage distribution of PaymentTier, ExperienceInCurrentDomain, and Gender across employee LeaveOrNot outcomes, using data loaded from a local CSV file. The visualization uses D3.js v7’s `d3.stack()` to compute stacked segments, with `scaleBand` and `scaleLinear` for axes, and `axisBottom` and `axisLeft` for ticks. Percentage labels on each bar segment and a legend are included, with styling defined in a linked stylesheet.

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.