Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Tutorial2

Public visualization

Viewing a saved revision (read-only)

80df028e3e6b4b8d83093f2152dc724c

Tutorial2

0 stars0🌍 Public
Cchintamanenithp@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

A stacked bar chart visualizes the distribution of IMDb movie ratings across genres, with each genre’s percentage of ratings in five categories (from below 5.0 to above 8.5). The chart uses D3 v7 with SVG rendering, employing `d3.stack()`, `d3.scaleLinear()`, `d3.scaleBand()`, and `d3.scaleOrdinal()` for layout and coloring. A custom tooltip displays exact percentages on hover, while axes are formatted using `d3.axisBottom()` and `d3.axisLeft()`. Data comes from the included CSV file.

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.