Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

IMDb Movie ratings

Public visualization

IMDb Movie ratings

0 stars0🌍 Public
VVarshareddy2912
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. The chart displays the percentage of movies within five rating bands, from below 5.0 to above 8.5, for genres such as Documentary, Drama, and Action. The visualization is rendered as an SVG using D3 v7, with data loaded from a local CSV file. The code employs d3.scaleOrdinal for color mapping, d3.scaleBand for the categorical y-axis, and d3.scaleLinear for the percentage scale, along with interactive tooltips on mouseover.

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