Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Ques2

Public visualization

Activity6_Ques2

0 stars1🌍 Public
Nnithinnc@outlook.com
Last edited Apr 11, 2024
Created on Apr 11, 2024

This stacked bar chart compares the percentage distribution of ratings across six categories—Technology, Finance, Healthcare, Education, Sports, and Entertainment—using horizontal bars. Each bar is segmented into five rating bands, from "below 4.0" to "above 9,” with a legend in the right margin. The visualization uses D3 v7's `d3.stack()` to aggregate the data and `d3.scaleOrdinal()` for color mapping. An SVG renders the chart, while mouseover events display a tooltip showing the exact percentage for each segment. The data is loaded from a local CSV file.

AI-generated description

Ratings according to different categories

This stacked bar chart gives the percentage of ratings according to different categories

Comments

Sign in to join the discussion.

MIT Licensed