Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity-6 task-2 question2.3

Public visualization

Viewing a saved revision (read-only)

bc8406251269427093a1ea2858a47683

activity-6 task-2 question2.3

0 stars0🌍 Public
Bbhargavireddy4016@gmail.com
Last edited Apr 2, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

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 description