Skip to main content
100%

Activity 6 task2

✓ Published0🌍 Public
RRakesh Yadav
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example shows the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the percentage of movies within a rating range. The visualization includes an interactive tooltip that displays the exact percentage for each genre and rating category on hover. The implementation uses D3 v7 with SVG rendering, leveraging `d3.stack()` for data stacking, `d3.scaleBand()` and `d3.scaleLinear()` for positioning, and `d3.scaleOrdinal()` with a custom color palette for rating categories. The data is loaded from a local CSV file with pre-calculated percentage values.

AI-generated description

An example showing the capabilities of VizHub:

MIT Licensed

Similar vizzes