Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activty6_Question2_3

Public visualization

Viewing a saved revision (read-only)

eeb90b68f66247fc8438e4205133984f

Activty6_Question2_3

0 stars0🌍 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