Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
Aalapati98@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. Each bar segment represents the percentage of movies within a rating interval, from “below 5.0” to “above 8.5”. The chart, rendered as SVG, uses D3 v7’s `d3.stack`, `scaleOrdinal`, `scaleLinear`, and `scaleBand`. Hovering over a segment highlights it and displays a tooltip with the exact percentage, computed via `d3.format`. Data originates from a local 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