Skip to main content
100%

activity6_tutorial2

✓ Published1🌍 Public
1188r1a0559@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

A stacked horizontal bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing a rating category from “below 5.0” to “above 8.5.” The chart reads proportions along a linear percentage axis, using d3.stack to compute layer offsets and d3.scaleOrdinal with distinct colors for each category. Interactive tooltips appear on mouseover via D3 event handlers, showing the exact percentage for a given genre and rating segment. The example imports D3 v7 from UNPKG and renders the visualization as SVG, with axes formatted 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.
MIT Licensed

Similar vizzes