Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

TASK8_TUTORIAL2

Public visualization

Viewing a saved revision (read-only)

46a9eaebce514163973b77630c696b7c

TASK8_TUTORIAL2

0 stars0🌍 Public
Ttarunskuruvadi@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A stacked bar chart displays the distribution of IMDb ratings across six movie genres, with each bar segmented into five percentage-based rating categories. Horizontal bars show how rating proportions vary by genre, using distinct colors for each rating range. The d3.stack() API constructs the stacked segments, while d3.scaleBand and d3.scaleLinear handle positioning. Hovering over any segment reveals a tooltip with the exact percentage for that genre-rating combination. The visualization renders as scalable vector graphics (SVG) and reads data from a CSV file containing genre and rating percentages.

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.