Skip to main content
100%

Activity-8_Task-2

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

This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of movies falling into five rating brackets from below 5.0 to above 8.5. The chart uses d3.stack() to compute the layered data, d3.scaleBand and d3.scaleLinear for positioning, and d3.scaleOrdinal to map color categories. Interactive tooltips appear on mouseover, displaying the exact percentage for each segment using d3.format. The data is loaded from a local CSV file and rendered as SVG elements.

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