Skip to main content
100%

Fork of Activity 6_task 2

✓ Published0🌍 Public
KKarnam Abinay Goud
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Activity 7

A stacked horizontal bar chart displays the distribution of IMDb movie ratings across six genres, using percentages from the bundled CSV data. The chart uses D3 v7's `d3.stack`, `d3.scaleBand`, and `d3.scaleOrdinal` to render five rating categories per genre with a custom color scale. Hovering over a bar segment triggers a tooltip via mouse events, showing the exact percentage for that rating segment. Axes are formatted with `d3.axisBottom` and `d3.axisLeft`, while styled tick text and labels come from external CSS.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes