Skip to main content
100%

harsha act6 que2

✓ Published1🌍 Public
Ssriharshakondakindi@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

A stacked bar chart displays the percentage of five rating levels across different movie genres, with hover tooltips revealing exact percentages. The visualization uses d3.stack() to compute stacked series and d3.scaleBand() for the categorical y-axis. SVG elements render the chart, while a tooltip div shows values on mouseover, with d3.format() controlling decimal precision. Data is loaded from irisdata.csv, though the dataset appears mislabeled as iris species rather than movie genres.

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