Skip to main content
100%

Task 8 tutorial 2

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

This stacked bar chart displays the percentage of rating levels for different cosmetic brands, showing how ratings are distributed across categories like "below 5.0" and "above 8.5." The chart uses a horizontal layout where each brand has a single bar divided into colored segments representing rating proportions, with a tooltip revealing exact percentages on hover. Built with D3 v7, the visualization applies `d3.stack()` to process the CSV data, `d3.scaleLinear` and `d3.scaleBand` for axes, and `d3.scaleOrdinal` for color mapping. The SVG rendering includes interactive mouse events for tooltip display, and the code is sourced from a local CSV file.

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