Fork of Activity_7_Q2
✓ Published1🌍 Public
This visualization displays the relationship between age and BMI, using a gradient-filled area chart with interactive hover effects. It highlights data points categorized as "High" or "Normal" BMI, and the hover interaction reveals a tooltip with age, BMI, and category details. Built with D3.js (v7.8.5), the code fetches a CSV from a GitHub gist and uses scales, axes, gridlines, and a Catmull-Rom curve for smoothing. An invisible overlay rectangle enables mouse tracking, which drives the tooltip, a dashed hover line, and a marker circle.
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