Skip to main content
100%

Question-2 Task 2

✓ Published0🌍 Public
Ddaneeshchowdary18@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

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 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