Skip to main content
100%

Activity-6-task-2

✓ Published0🌍 Public
Nnaveen.dodda4321@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This visualization displays the percentage distribution of IMDb movie ratings across five genres, using a horizontal stacked bar chart. Each bar represents a genre, with color-coded segments for rating ranges from "below 5.0" to "above 8.5". The code uses D3.js v7 APIs such as `d3.stack`, `d3.scaleOrdinal`, `d3.scaleBand`, and `d3.axisLeft` to process the CSV data and render the SVG. Interactive tooltips, implemented with `mouseover` events, show exact percentages 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