Fork of Activity6_Q2
This stacked bar chart visualizes mobile phone prices across four brands (Samsung, Nokia, Motorola, Redmi) for four fiscal quarters, showing the cumulative price contribution of each quarter. The visualization uses D3.js v7 with an SVG rendering, employing the `d3.stack()` function to create stacked segments and `d3.scaleBand`/`d3.scaleLinear` for axes. Hovering over any segment displays a tooltip showing the specific quarter and sales amount. The chart includes ordinal color scaling for quarters, axis labels, and a legend, with data loaded from a CSV file containing brand and quarterly price values.
AI-generated descriptionThe impact of genre on movie ratings
This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.