🌍 Public
Viewing a saved revision (read-only)
0ff591110cd94d708902276454aef317
Activity 6 Tutorial 2 BHAVANI MANDULA
A stacked bar chart shows the distribution of IMDb rating categories across six movie genres, with each bar segment representing the percentage of ratings in ranges from below 5.0 to above 8.5. The visualization uses d3.stack() to compute the stacked segments and d3.scaleOrdinal() with a custom color palette for the rating bands. Hovering over a segment displays a tooltip with the exact percentage via d3.format(). Data comes from a CSV file loaded with the D3 v7 library, rendered as SVG with scales for percentage and genre on the x and y axes.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.