Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Act6-tutorial2

Public visualization

Act6-tutorial2

0 stars1๐ŸŒ 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.

Comments

Sign in to join the discussion.

MIT Licensed