Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
SSiddhardha
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This example shows the distribution of IMDb movie ratings across six genres, with horizontal stacked bars dividing each genre into five rating categories from “below 5.0” to “above 8.5.” The chart includes a color-coded legend, axes, and an interactive tooltip that displays the exact percentage for a hovered segment. The visualization uses D3 v7 with stacked bar layout via `d3.stack()`, scales from `d3.scaleLinear` and `d3.scaleBand`, and an ordinal color scale. Data is loaded from a 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