Skip to main content
100%

Activity6_Task2 Question 1

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

This example shows a stacked horizontal bar chart comparing IMDb rating distributions across six movie genres, with each bar segment colored by rating category and labeled with percentages in a tooltip. The visualization uses D3 v7 with SVG rendering to encode genre on a band scale and proportions on a linear scale, applying `d3.stack`, `d3.scaleOrdinal`, and `d3.axisBottom`. Data comes from a CSV file containing genre-specific percentage values for five rating buckets. Interactive mouseover events update a DOM-based tooltip to display the precise percentage for each segment.

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