Skip to main content
100%

Varun_6_tutorial2

✓ Published0🌍 Public
VVarunKumarKambhampati@my.unt.edu
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across different genres using a stacked horizontal bar chart, where each bar segment represents the percentage of movies within a specific rating range. The chart is rendered using D3.js v7, with data loaded from a CSV file containing genre and rating category proportions. The visualization uses `d3.scaleBand` and `d3.scaleLinear` for axes, `d3.stack` to create the stacked segments, and `d3.scaleOrdinal` to assign colors to rating categories. Interactive tooltips provide detailed percentage values on hover, implemented through D3 event handlers and a custom HTML overlay.

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