Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6-Question2

Public visualization

Activity6-Question2

0 stars0🌍 Public
MMounishAllam@my.unt.edu
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This example displays a horizontal stacked bar chart comparing the ratings distribution (below 5.0 to above 8.5) across music streaming platforms like Spotify, YouTube, and Apple. The contoured bars use a gradient-filled legend, and hovering over a segment reveals the exact percentage via a tooltip. The code uses D3 v7’s `scaleLinear`, `scaleBand`, `scaleOrdinal`, and `stack` APIs to process the CSV data and render the chart as SVG.

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.

Comments

Sign in to join the discussion.

MIT Licensed