Skip to main content
100%

Activty6_Question2_3

✓ Published0🌍 Public
Ssriharshithaanugu5@gmail.com
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Hello VizHub

This horizontal stacked bar chart visualizes the proportional distribution of ratings across five categories (Technology, Science, Education, Healthcare, Finance) for a single metric. The stacked segments represent rating ranges from "Below 5.0" to "Above 8.5," with each bar scaled to 100% width. The visualization uses D3.js v7 with the `d3.stack()` and `d3.stackOffsetExpand` API to create normalized segments, color-coded via `d3.scaleOrdinal`. Labels display percentage values on segments wider than 40 pixels, and tooltips via SVG `<title>` elements provide exact percentages. Data is embedded directly in the HTML source.

AI-generated description
MIT Licensed

Similar vizzes