Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question-2

Public visualization

Viewing a saved revision (read-only)

0e347bdf20c143deb60ba6f887aa7083

Question-2

0 stars0🌍 Public
Rrahul.bonu524@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

A stacked horizontal bar chart displays the percentage distribution of movie ratings across six genres, with each bar segmented by five rating bands from below 5.0 to above 8.5. The visualization uses D3 v7 to load CSV data via `d3.csv`, stack values with `d3.stack()`, scale positions with `d3.scaleBand` and `d3.scaleLinear`, and render SVG rectangles with tooltips on mouseover. An ordinal color scale maps rating bands to distinct colors, while axes and labels are generated using `d3.axisBottom` and `d3.axisLeft`.

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.