Activity6_q2
This stacked bar chart visualizes the percentage distribution of five sales performance categories (Below 100, 100-500, 500-1000, 1000-5000, Above 5000) across six product categories, showing how sales outcomes vary by product type. Using D3.js v7 with SVG rendering, the chart employs `d3.stack()` to generate stacked segments and `d3.scaleOrdinal()` for color encoding. Interactive tooltips appear on mouseover, displaying the exact percentage for each segment. The data comes from a local CSV file, and the visualization uses linear and band scales for positioning.
AI-generated descriptionThe impact of genre on movie ratings
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%.