Skip to main content
100%

Activity6 task2

✓ Published0🌍 Public
BBhavana Sharma
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings across six genres using a horizontal stacked bar chart, with each bar divided into five rating brackets from below 5.0 to above 8.5. The chart is rendered as an SVG using D3 v7, loading the data from a CSV file and employing `d3.stack` for the stacked layout, `d3.scaleBand` for the genre axis, and `d3.scaleOrdinal` for color mapping. Interactive tooltips display the exact percentage for each rating segment on hover.

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