Skip to main content
100%

Question2 of Activity6

✓ Published0🌍 Public
VVenkataSaisrivishnuBatchu@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Task2 of Activity6

This stacked bar chart displays fruit sales across four years, with each bar segmented by year and colored by fruit category. It uses D3 v7’s `d3.stack()` to compute the stacked segments, `d3.scaleBand` for the categorical y-axis, and `d3.scaleLinear` for the sales x-axis. Mouseover events trigger a custom tooltip showing the exact sales value per segment, while a legend identifies the year colors. The data is loaded from a CSV file and rendered as SVG.

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