Skip to main content
100%

Task-8-Q2.3

✓ Published0🌍 Public
Mmdadeebfarhaan@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Task-8-Tutorial-2

This example shows the distribution of game ratings across six sports, with each sport’s ratings divided into five percentage categories. It uses a stacked horizontal bar chart, where each bar segment represents the proportion of ratings in a category, and the total bar length spans from zero to one hundred percent. The visualization is rendered as SVG using D3 v7, with data loaded from a CSV file. The code leverages D3’s `scaleBand`, `scaleLinear`, `stack`, and `scaleOrdinal` APIs to construct the chart, and tooltips display the precise 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