Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Activity6_Task2

0 stars1🌍 Public
LLokesh Madem
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings by genre, showing the percentage distribution of ratings across five rating brackets for six genres. The stacked horizontal bar chart uses D3 v7's `stack()` and `scaleBand` to compose the data, with each genre row containing proportional segments colored via `scaleOrdinal`. Interactive tooltips on `mouseover` reveal the exact percentage values for each segment. The visualization loads data from a local CSV file and renders the output as an SVG, incorporating custom fonts and axis styling.

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.

Comments

Sign in to join the discussion.

MIT Licensed