Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_Task2

Public visualization

Viewing a saved revision (read-only)

20c4add32e6d43bda49e577185195664

Activity_Task2

0 stars4🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the impact of movie genre on IMDb ratings, displaying the percentage distribution of ratings across five categories (below 5.0 to above 8.5) for six genres. Using D3.js v7, the chart employs `d3.stack()` to create stacked bars and `d3.scaleBand()` for the genre axis. Interactive tooltips provide precise percentages on hover, with data sourced from a CSV file. The SVG rendering uses `d3.axisBottom()` and `d3.axisLeft()` for axes, while mouseover events trigger opacity changes and detailed pop-ups.

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.