Skip to main content
100%

Activity 6 _Task2

✓ Published0🌍 Public
Ssiddhubhupathi@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar divided into five rating categories from "below 5.0" to "above 8.5" using percentage values loaded from a CSV file. The visualization uses d3.stack() to compute the stacked segments, d3.scaleOrdinal() for color mapping, and d3.scaleBand() and d3.scaleLinear() for the axes. Interactive tooltips appear on mouseover, displaying the percentage for each specific rating category within a genre, while semi-transparent highlighting emphasizes the hovered segment. The SVG rendering employs D3 v7 with custom styles for typography and tooltip formatting.

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