🌍 Public
Viewing a saved revision (read-only)
24c58f52c7014534847816ddce32b5a8
task2_supriya
This example visualizes IMDb movie ratings across six genres, showing the percentage distribution of ratings in five categories from “below 5.0” to “above 8.5” using stacked horizontal bar charts. The D3 v7 code loads data from a CSV file, applies a d3.stack layout, and maps colors via d3.scaleOrdinal to render SVG rectangles. It includes interactive tooltips on mouseover that display the exact rating percentage for each segment, with axes formatted using d3.axisBottom and d3.axisLeft.
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.