Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
Ttarun.chintada46@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024
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 proportion of films in each rating category, from below 5.0 to above 8.5, with genres ordered along the y-axis and percentage values on the x-axis. The code loads data from a CSV file, processes it with d3.stack, and renders the SVG using d3.scaleBand, d3.scaleLinear, and d3.scaleOrdinal. Interactive tooltips appear on mouseover to show exact percentages, implemented with D3 event handlers.

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