🌍 Public
Viewing a saved revision (read-only)
9f83c0762e70417c87de2cbbf54216f8
naa istham
This interactive stacked bar chart compares product categories by the percentage of customer ratings in five ranges from below 5.0 to above 8.5, using a horizontal layout. Each bar is divided into colored segments representing these rating tiers, and hovering over a segment displays the exact percentage of that category's total. Built with D3 v7, the visualization uses `d3.scaleOrdinal` for colors, `d3.stack` to calculate the cumulatively stacked bar widths, and `d3.join` for efficient element creation. A legend maps colors to rating ranges, and the tooltip shows precise hover values.
AI-generated description