Task 8 T2_VITESH CHALICHEEMALA
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the percentage of movies falling into one of five rating categories. The chart is rendered with D3 v7 using SVG, with rectangles stacked via `d3.stack()`, positioned by `d3.scaleLinear` and `d3.scaleBand`, and colored via a `d3.scaleOrdinal` with a custom palette. Interactive tooltips appear on mouseover, displaying the exact percentage for each genre-rating combination. Data is loaded from a CSV file containing precomputed proportions.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed