Skip to main content
100%

Activity 6_Question 2_Harini

✓ Published0🌍 Public
Kkamarthyharini24@gmail.com
Last edited Apr 2, 2024
Created on Apr 2, 2024

A stacked bar chart displays the percentage distribution of 10th-grade student scores across eight subjects, with each bar divided into five score bands from “below 60” to “above 90.” The visualization reveals how performance varies by subject, such as higher top scores in Physics and Computer Science versus more mid-range results in Biology. Built with d3.v7 and SVG, the chart uses `d3.stack()` to compose segments, `d3.scaleBand` for subject placement, and `d3.scaleLinear` for percentages. Interactive tooltips appear on mouseover, showing precise values formatted with `d3.format('.2f')`. Data originates from the local CSV file `10thGradeScores.csv`.

AI-generated description

The impact of genre on movie ratings

This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.

MIT Licensed

Similar vizzes