Question-2 Task 2
✓ Published0🌍 Public
This example shows a grouped bar chart comparing average heights of boys and girls across grades 6–10, with a hover tooltip that displays the exact height and gender for each bar. It loads the dataset from the CSV file using d3.csv and renders SVG bar groups side-by-side, with bars colored via d3.scaleOrdinal and the d3.schemeCategory10 palette. The chart uses d3.stack to structure the data and d3.scaleBand and d3.scaleLinear for positioning, while mouseover and mouseout events control an overlay tooltip.
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