Skip to main content
100%

Activity6_Task2_Poorna

✓ Published0🌍 Public
Ppoornachander510@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Activity6_Task2

This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the percentage of titles within rating ranges from below 5.0 to above 8.5. The chart displays genre names on the y-axis and percentage values on the x-axis, with colors distinguishing each rating category. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked data, `d3.scaleOrdinal` for categorical colors, and `d3.scaleBand` and `d3.scaleLinear` for positioning. Interactive tooltips appear on mouseover to show precise percentage values for each genre and rating combination. The data comes from a local CSV file loaded asynchronously.

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