Skip to main content
100%

Acitivty6_Task2

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

This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, using a divergent color palette for five rating categories from "below 5.0" to "above 8.5." The chart employs D3 v7's `d3.stack()` function to transform the dataset into stacked segments, with `d3.scaleOrdinal()` mapping categories to colors. Each genre row uses horizontal bars to show proportional percentages, and an interactive tooltip displays exact values on mouseover. The data originates from the included `data.csv` file.

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