Skip to main content
100%

activity 6- Q2

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

This stacked bar chart displays the percentage distribution of IMDb ratings across six video game genres, with each bar segmented by rating bands from below 2.0 to above 8.5. The visualization uses d3.stack() to aggregate the data, d3.scaleOrdinal for color encoding, and d3.scaleBand for the categorical y-axis. Interactive tooltips appear on mouseover, showing the exact percentage for each rating segment, while the chart reads from a local CSV file. The SVG rendering employs d3.axisBottom and d3.axisLeft for axes with custom tick formatting.

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