Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

64c01a3d1d624dc7913d6020abffee87

Activity6_Task2

0 stars0🌍 Public
Nnithinnc@outlook.com
Last edited Apr 11, 2024
Created on Apr 11, 2024

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 description

A demonstration of how to start using D3 version 6.