Skip to main content
100%

Activity6task2q2

✓ Published0🌍 Public
Ssaitejakaranam10@gmail.com
Last edited Apr 6, 2024
Created on Apr 6, 2024
Forked from Activity6_q2

This stacked bar chart visualizes the percentage of sales performance within each product category, with horizontal bars segmented by price ranges from "Below 100" to "Above 5000." The chart uses D3 v7's `d3.stack()` to create the stacked segments, `d3.scaleLinear` and `d3.scaleBand` for positioning, and `d3.scaleOrdinal` for color mapping. Interactive tooltips display exact percentages on hover using mouse events, while SVG rendering provides the visual output.

AI-generated description

This stacked bar chart gives the percentage of each Category level within different Category. The aim is to show the impact of Category on Sales performance. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each sales performance within each Category. Total percentage is 1, representing 100%.

MIT Licensed

Similar vizzes