Skip to main content
100%

Task 8 q2

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

A stacked bar chart displays IMDb rating distributions across six film genres, with each bar segmented into five rating categories from "below 5.0" to "above 8.5." The chart uses d3.stack() to compute stacked series, d3.scaleLinear for the percentage x-axis, and d3.scaleBand for categorical genre spacing. Hovering over any segment reveals a tooltip showing the exact percentage for that rating category using d3.select and event handlers. Data comes from a local CSV file 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