act6_Task2
This example presents a stacked horizontal bar chart comparing the distribution of movie ratings across six streaming platforms: Netflix, Hulu, Amazon Prime, Disney+, HBO Max, and Apple TV. The ratings are divided into five percentage-based categories, from below 5.0 to above 8.5. Built with D3.js v7, the visualization uses `d3.stack()` to create the stacked segments and `d3.scaleOrdinal()` for the color scheme. The SVG rendering includes interactive tooltips that display the exact percentage for each rating category when hovering over a segment, with D3’s `axisBottom` and `axisLeft` for the percentage and platform axes.