๐ Public
Activity6_Task2
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the percentage of ratings within five categories from below 5.0 to above 8.5. The chart uses D3 v7 with SVG rendering, employing d3.stack for data transformation, d3.scaleOrdinal for color assignment, and d3.scaleBand for the categorical y-axis. Interactive tooltips appear on mouseover to display exact percentages using d3.format. The code reads data from a CSV file and loads D3 via UNPKG.
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
Comments
Sign in to join the discussion.