Skip to main content
100%

Act6-tutorial2

✓ Published1🌍 Public
RRayabarapu Nikhitha
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This stacked bar chart visualizes the distribution of movie ratings across six genres, using horizontal bars to show the percentage of ratings in five categories from "below 5.0" to "above 8.5." The chart loads CSV data, builds the stacked layout with d3.stack(), and scales positions using d3.scaleLinear and d3.scaleBand. Interactive tooltips display exact percentages on mouseover, while an ordinal color scale distinguishes rating categories. The visualization is rendered as SVG using D3 v7, with axis labels and a legend highlighting genre-specific rating patterns.

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.
MIT Licensed

Similar vizzes