Assignment-6_Question-2
✓ Published0🌍 Public
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
MIT Licensed