Skip to main content
100%

Multiple Line plot with Dropdown

✓ Published1🌍 Public
KKhatera Alizada
Last edited Apr 28, 2023
Created on Mar 18, 2023

This visualization displays health expenditure trends in the US, showing multiple lines for different age groups over time. It uses D3.js v5 with SVG rendering and animated transitions to draw the line chart. A dropdown menu allows users to select different expenditure columns, triggering a smooth 1.5-second transition animation that redraws the lines. The chart includes a color legend for age categories and uses D3's `scaleTime`, `scaleOrdinal`, `nest()`, and `line()` APIs.

AI-generated description

Scatter plot of health expenses

MIT Licensed

Similar vizzes