Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
Sshivakumarganji@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Activity-6

This example displays a stacked bar chart of movie ratings by genre, with each bar broken into colored segments for action, comedy, drama, thriller, and horror categories, based on data from `data.csv`. Using D3 v7, it applies `d3.stack()` to create the layered segments, `d3.scaleBand()` and `d3.scaleLinear()` for axes, and `d3.axisLeft()` and `d3.axisBottom()` for tick marks. Interactive tooltips appear on mouseover, showing the percentage for each segment.

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