Export Image
Export Code

Tutorial 2 Question 3

chandrikachandra30

Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Activity-6

Another Stacked Bar Chart Example

This is another example of a stacked bar chart demonstrating the distribution of different rating levels within various categories. Hovering over each bar will display the precise percentage of each rating level within the respective category. The total percentage for each category sums up to 1, representing 100%.

Dataset

The dataset used for this visualization is stored in data2.csv. It includes the following columns:

  • category
  • below 5.0
  • 5.0-6.5
  • 6.5-7.5
  • 7.5-8.5
  • above 8.5

Usage

To view the stacked bar chart, simply open index2.html in a web browser.

Additional Information

For styling and tooltip functionality, refer to the included styles.css file.

MIT Licensed