🌍 Public
Viewing a saved revision (read-only)
ed6a7ac3400141348c47b3b4c1c0f37e
Assignment-6_Question-2
This stacked bar chart shows the distribution of Walmart product ratings across six product categories, with each bar segmented by five rating bands from "below 5.0" to "above 8.5". The visualization uses D3.js v7 with SVG rendering, employing the `d3.stack()` and `d3.scaleBand()` APIs to create the horizontal stacked bars from the CSV data. The ordinal color scale maps the rating bands, and a hover tooltip displays the exact percentage for each segment. The chart includes axis labels and a title, with the percentage values formatted to two decimal places.
AI-generated descriptionCreating stacked bar chart using the Products data