Skip to main content
100%

Activity 6 Task 2

✓ Published0🌍 Public
RRukmini Devi Y
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from D3 Transitions

This stacked bar chart displays the distribution of movie ratings across six genres, breaking down each genre’s percentage into five rating categories from “below 5.0” to “above 8.5.” Using D3 v7 and SVG rendering, the code applies `d3.stack`, `d3.scaleOrdinal`, `d3.scaleLinear`, and `d3.scaleBand` to construct the bars, while `d3.axisBottom` and `d3.axisLeft` handle axes. Interactive hover effects via tooltips show exact percentages with `d3.format`, and a legend clarifies color mapping for each rating category.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes