task2 question rohit
✓ Published0🌍 Public
This example presents a stacked horizontal bar chart of sports, showing the percentage distribution of ratings (below 5.0 through above 8.5) for six sports. The chart uses D3 v7 APIs including `d3.stack()`, `d3.scaleOrdinal()`, `d3.scaleLinear()`, and `d3.scaleBand()`. The SVG rendering includes tooltips on mouseover that display the exact percentage for each segment, with data loaded from a CSV file. The visualization uses a color scale for rating categories and custom fonts from Google Fonts.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed