Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
Ssaimanvith22@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings by genre using a stacked horizontal bar chart. Six genres are compared across five rating categories (below 5.0 through above 8.5), with each bar segment representing the percentage of films in that rating range. The visualization uses D3 v7 with SVG rendering, employing `d3.stack()` for data stacking, `d3.scaleBand()` and `d3.scaleLinear()` for axes, and `d3.scaleOrdinal()` for color encoding. Interactive tooltips display exact percentages on mouseover events, while the data comes from a CSV file loaded directly in the code.

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