Skip to main content
100%

act8_task2

✓ Published0🌍 Public
Rravularasesh3102@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This example shows the distribution of IMDb movie ratings across six genres, using a horizontal stacked bar chart where each bar segment represents the proportion of movies within rating brackets below 5.0, 5.0-6.5, 6.5-7.5, 7.5-8.5, and above 8.5. It loads D3 v7 via UNPKG and uses `d3.stack`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` to render the SVG. Hovering over a segment displays a tooltip with the exact percentage for that genre and rating bracket.

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