Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
KKondreddy Saikiran reddy
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from Hello VizHub

A stacked bar chart displays the distribution of IMDb movie ratings across six genres, with each bar segmented into five rating brackets from “below 5.0” to “above 8.5” as percentages. The chart uses D3 v7’s `d3.stack` to compute the stacked series and `d3.scaleOrdinal` with a categorical color palette for the segments. Interactive tooltips reveal exact percentages on hover, and axes are rendered with `d3.axisBottom` and `d3.axisLeft`. Data comes from the bundled `data.csv` file, and the visualization is drawn as SVG elements within a fixed-size viewport.

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