Skip to main content
100%

Activity6_Task2

✓ Published0🌍 Public
Mmasters200128@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity6_Task6

This example visualizes IMDb movie ratings across six genres, showing the percentage distribution of ratings in five categories from “below 5.0” to “above 8.5” using stacked horizontal bars rendered as SVG rectangles. The chart loads D3 v7 via UNPKG, uses `d3.stack()` to compute stacked segments, and applies `d3.scaleBand()` for the categorical genre axis and `d3.scaleLinear()` for the percentage axis. The code also demonstrates custom tooltips with mouseover/mousemove/mouseout events and uses `d3.axisLeft()` and `d3.axisBottom()` for axes, with data sourced from a 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.
MIT Licensed

Similar vizzes