Skip to main content
100%

Activity8_tutorial2_sahith

✓ Published0🌍 Public
Mmanisahiths54321@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from activity6t2

This stacked bar chart shows the percentage distribution of five rating brackets across six movie genres, revealing that documentaries and dramas skew toward higher ratings while action films cluster in the lowest tier. Each genre’s bar is divided into colored segments corresponding to rating levels, with hover tooltips displaying precise percentages that sum to 100%. Built with D3.js, the visualization uses `d3.csv` to load the dataset, `d3.scaleBand` for x-axis positioning, `d3.scaleOrdinal` for categorical color mapping, and `d3.stack` to compute the stacked layout. Axis labels and tick formatting are customized via D3’s SVG rendering, with tooltips implemented through mouse event handlers.

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