Skip to main content
100%

Task8_Tutorial2

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

This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of films falling into one of five rating brackets from “below 5.0” to “above 8.5.” The visualization uses d3.stack() to compute the stacked series and d3.scaleOrdinal with a custom color palette for the rating categories. D3’s scaleLinear and scaleBand position the bars and axes, while mouseover events trigger a tooltip that displays the exact rounded percentage for each segment. The SVG is rendered with axis labels, a title, and genre labels along the y-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