Skip to main content
100%

Activity 6_Task2

✓ Published0🌍 Public
Ggalijawaharnath@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example visualizes the distribution of movie ratings across genres using a stacked horizontal bar chart. The chart, titled "Rating according to genres," displays the percentage of movies falling into five rating brackets (from below 5.0 to above 8.5) for each genre, sourced from a local CSV file. Built with D3 v7, the visualization uses `d3.stack()` to create stacked bars, `d3.scaleOrdinal()` for color coding, and `d3.scaleLinear()` for the x-axis. Interactive tooltips appear on hover, showing the exact percentage for each rating category within a genre.

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