Skip to main content
100%

Question2

✓ Published0🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Oct 23, 2024
Created on Oct 22, 2024
Forked from Activity6_Task2

This example displays a horizontal stacked bar chart that breaks down the percentage of horsepower, torque, and highway MPG values for various car makes, using a dataset loaded from a CSV file. The chart encodes each metric as a colored segment within each bar, allowing for quick comparison across the different manufacturers. Implemented with D3 v7, the visualization uses the `d3.stack` function to normalize the data, while `d3.scaleOrdinal` maps colors to each metric, all rendered as SVG elements. On hover, an interactive tooltip displays the precise decimal value for that segment.

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