Activity_6_Task_2
✓ Published1🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed