activity-6 task-2 question2.3
✓ Published0🌍 Public
This stacked bar chart displays the proportion of product ratings within five ranges for each superstore category, showing the distribution of customer feedback across different product types. The visualization uses D3.js v7 with a horizontal stacked bar layout where each category row is divided into colored segments representing rating intervals from below 5.0 to above 8.5. The code utilizes `d3.stack()` with `stackOffsetExpand` to normalize each bar to full width, `d3.scaleLinear()` for the x-axis, and `d3.scaleBand()` for category positioning. The data is computed from the CSV file's percentage values, rendered as SVG rectangles with a legend.
AI-generated descriptionMIT Licensed