Skip to main content
100%

Question 3

✓ Published0🌍 Public
GGangumalla Ruchitha Reddy
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

A stacked horizontal bar chart displays the distribution of movie ratings across six genres, with each bar segmented into five rating categories from "below 5.0" to "above 8.5." The chart uses D3 v7's `d3.stack()` and `scaleOrdinal` for color mapping, with `scaleLinear` for the x-axis and `scaleBand` for genres. Tooltips appear on mouseover via `d3.select` and `event.pageX`/`pageY`, showing the exact percentage per rating category. Data originates from a local `data.csv` file rendered as SVG.

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