Skip to main content
100%

Activity 6_Tutorial 2

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

This example visualizes the distribution of IMDb movie ratings across different genres as a stacked horizontal bar chart. Each bar represents a genre, segmented by rating categories (below 5.0 through above 8.5), with segment widths proportional to percentage shares. Built with D3 v7 and SVG, it uses `d3.stack()` to generate stacked series, `d3.scaleBand` for the genre axis, and `d3.scaleLinear` for the percentage scale. Interactive tooltips on mouseover display the exact percentage for each genre-rating combination, using data from a provided 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