Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

96e8543eefd24e01a30dc34eeeb999bf

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

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.