Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

957f59786d624212bf3cdd41f5d11564

Activity6_Task2

0 stars2🌍 Public
Ssaisnehapalle@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb ratings across genres, with each bar divided into five rating categories from "below 5.0" to "above 8.5" expressed as percentages. The chart is rendered as SVG using D3 v7, with data loaded from a CSV file. It employs d3.stack() to create the stacked layout, d3.scaleBand() for the genre axis, d3.scaleLinear() for percentages, and d3.scaleOrdinal() with a custom color palette. Interactive tooltips display the exact percentage for each rating segment on hover.

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.