Activity 6 tutorial 2
✓ Published0🌍 Public
This example shows a stacked bar chart of IMDb movie ratings by genre, with each bar segmented into five rating ranges from below 5.0 to above 8.5. The code loads D3 v7 via UNPKG and uses d3.stack, d3.scaleOrdinal, d3.scaleLinear, and d3.scaleBand to process and render the data. It includes interactive tooltips on mouseover that display the exact percentage for each segment. The chart is rendered as SVG with an axis, legend, and labels, using data from a CSV file.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed