🌍 Public
Viewing a saved revision (read-only)
ff6e2293e8e240b188d1f801b2272eeb
Activity6_TASK-2
A stacked bar chart visualizes the distribution of five rating categories across six movie genres, with each bar segment showing the percentage of ratings within that genre. Hovering over a segment displays a tooltip with the exact percentage value. The chart uses d3.stack() to aggregate data from a CSV file, d3.scaleBand() for the categorical genre axis, and d3.scaleLinear() for the percentage scale. Colors are assigned via d3.scaleOrdinal(), and SVG rendering displays the horizontal bars with axis labels.
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.