Skip to main content
100%

activity6 task_2

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

This visualization shows the distribution of IMDb ratings across six movie genres, using a stacked horizontal bar chart where each bar represents a genre and colored segments show the percentage of ratings in five score ranges. The chart is rendered as an SVG using D3 v7, with a tooltip that displays the exact percentage for each genre-rating segment on hover. The data comes from a CSV file containing proportional ratings for genres like Documentary, Drama, and Comedy. D3’s stack, scaleBand, and scaleOrdinal APIs handle the stacked layout and categorical coloring, while mouse events manage the interactive tooltip.

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