Skip to main content
100%

Activity 6_Task2

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

This stacked bar chart displays the distribution of IMDb ratings across six movie genres, with each genre represented as a horizontal bar divided into five rating range segments from below 5.0 to above 8.5. The visualization uses D3 v7’s `d3.stack()` and `d3.scaleBand()` to structure the data, with `d3.scaleOrdinal()` assigning colors to rating categories. Interactive tooltips reveal the exact percentage for each segment via mouse events, while axes and labels are rendered using `d3.axisBottom` and `d3.axisLeft`. The chart is drawn as an SVG element with data loaded from a CSV file.

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