Skip to main content
100%

Activity - 6_Task - 2

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

This stacked bar chart shows the distribution of IMDb ratings across six film genres, with each bar divided into five rating categories from “below 5.0” to “above 8.5”. The visualization uses d3.stack() to create the stacked series and d3.scaleOrdinal with a custom color palette for the categories. D3 scaleBand and scaleLinear position the bars and axes, while mouseover events trigger a tooltip displaying the exact percentage for each segment. Data comes from a CSV file loaded and parsed by D3 v7.

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