Skip to main content
100%

IMDb Movie ratings

✓ Published0🌍 Public
Vvineelaramulapalli32
Last edited Jul 16, 2023
Created on Jul 16, 2023
Forked from Hello VizHub

This visualization displays the distribution of IMDb movie ratings across different genres using a horizontal stacked bar chart. The chart shows the proportion of movies falling into five rating categories, from "below 5.0" to "above 8.5," for genres including Documentary, Drama, Comedy, Romance, Animation, and Action. The implementation leverages D3.js v7, loading data from a local CSV file, and uses functions such as `d3.stack()` for data transformation, `d3.scaleLinear()` and `d3.scaleBand()` for axis scaling, and `d3.axisBottom()` for rendering. Interactive mouseover events display tooltips with exact percentages.

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