Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Viewing a saved revision (read-only)

20a8d2f2c3684bbbbd82b4266ad28fbe

Activity6_Task2

0 stars0🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents a rating category from “below 5.0” to “above 8.5.” The chart is rendered with D3 v7 in SVG, employing `d3.stack()` to compute stacked series and `d3.scaleBand`/`d3.scaleLinear` for axes. Interactive tooltips appear on mouseover, displaying each segment’s exact percentage. Data comes from a local CSV file, and the genre labels are shown along the y-axis.

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.