Skip to main content
100%

Fork of Fork of Fork of task 8 question 2

✓ Published1🌍 Public
Vvchittimadha@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This example displays a stacked bar chart of movie ratings by genre, using a diverging horizontal layout where each bar segment represents a different rating category's percentage. The bars are color-coded with a categorical scale, and hovering over a segment reveals a tooltip with the exact percentage. The visualization is built with D3 v7, using `d3.stack()` to process the data and `d3.scaleBand()` for the y-axis. The chart renders as SVG, with data loaded 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