Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

TAsk8 T2

Public visualization

Viewing a saved revision (read-only)

f7ec4768b5f6473391a81bf9a9cde114

TAsk8 T2

0 stars2🌍 Public
Ssruthimreddy6@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage distribution of IMDb movie ratings across six genres, with each genre as a horizontal bar broken into five rating segments from below 5.0 to above 8.5. Hovering over a segment reveals a tooltip with the exact percentage for that rating category within the selected genre. The visualization is built using D3 v7, employing `d3.stack()`, `d3.scaleLinear()`, and `d3.scaleBand()` to construct coordinates, while the data comes from a local CSV file containing genre and rating percentage values, rendered as SVG rectangles.

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.