Skip to main content
100%

activity_6_task2

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

This example presents a stacked horizontal bar chart showing the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of movies falling into one of five rating brackets. The chart uses D3 v7’s `scaleLinear`, `scaleBand`, `scaleOrdinal`, and `stack` API to compute and render the stacked bars from CSV data. Interactive tooltips, implemented with D3 selections and event handlers, display the exact percentage for each genre-rating combination on mouseover. The visualization is rendered as SVG within a 960×500 canvas, with axes labeled and styled via external CSS.

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