Skip to main content
100%

Activity6_Task2

✓ Published2🌍 Public
Aadapasaidivya99@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This example displays a stacked horizontal bar chart of IMDb movie ratings across six genres, with each bar segmented into five rating ranges from "below 5.0" to "above 8.5" as percentages. The chart uses D3 v7’s `d3.stack` to aggregate genre data, `d3.scaleLinear` for the percentage axis, and `d3.scaleBand` for genre categories. Interactive tooltips appear on hover, showing the exact percentage for each rating segment, while bars reduce opacity for visual feedback.

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