Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
Hhemanthdummy999@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This stacked bar chart visualizes IMDb movie rating distributions across six genres, with each bar segment representing the percentage of movies falling into rating brackets from below 5.0 to above 8.5. The chart uses D3 v7’s `d3.stack()` to create the stacked layout, `d3.scaleBand()` for the genre axis, and `d3.scaleOrdinal()` with a custom color palette. Interactive tooltips appear on mouseover to display exact percentage values, formatted using `d3.format()`. The visualization is rendered as an SVG, with margins, axis labels, and styling defined via external CSS.

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