Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question2

Public visualization

Viewing a saved revision (read-only)

da26c809b9e64d25b8d9a85dd79f171a

Question2

0 stars0🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task2

A stacked bar chart visualizes the distribution of horsepower, torque, and highway MPG metrics across 31 car makes, with each bar segmented to show the proportional contribution of each metric. The chart uses D3.js v7 with SVG rendering, employing `d3.stack()` to generate stacked series and `d3.scaleOrdinal` to assign colors. Hovering over a segment displays a tooltip showing the exact metric value formatted with `d3.format('.2f')`. The data comes from a CSV containing average specifications, with axes labeled "Value" and "Rating" for clarity.

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%.