Skip to main content
100%

Fork of Activity6_Task2 sample

✓ Published1🌍 Public
Ssriyaalugupalli@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task2

A stacked bar chart visualizes Iris dataset measurements across four numeric variables—sepal length, sepal width, petal length, and petal width—grouped by species. Each horizontal bar shows the cumulative measurement values, with segments colored by variable. Hovering over a segment highlights it and displays the exact measurement value via a tooltip. The visualization uses D3 v7 with SVG rendering. It employs `d3.stack()` for data stacking, `d3.scaleOrdinal()` for colors, and `d3.scaleBand()` for the categorical species axis. Interactive tooltips are implemented using 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