Skip to main content
100%

Activity_6_Task_2

✓ Published0🌍 Public
SSai Sandhya Nannapaneni
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart shows how movie ratings are distributed across genres, using percentage segments for five rating ranges from "below 5.0" to "above 8.5". The chart uses `d3.stack` to compute the cumulative bar segments and `d3.scaleOrdinal` for color mapping, with interactive tooltips on mouseover that display the exact percentage for each rating category. The SVG is built using `d3.axisBottom`, `d3.axisLeft`, and `d3.scaleBand` for the categorical genre axis.

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