Transitioning from Stacked Area Chart to Line chart

A Svelte, LayerCake, D3 production

This demo uses Svelte (+D3) tweening to transition from stacked areas to lines. You can switch to a normalized y axis and play with the duration (ms) of the transition.
The dataset used comes from Observable's Stacked Area chart demo and shows US unemployed persons by industry 2000-2010.

2000
Wholesale and Retail Trade
Manufacturing
Leisure and hospitality
Business services
Construction
Education and Health
Government
Finance
Self-employed
Other
Transportation and Utilities
Information
Agriculture
Mining and Extraction
Feb. 8Sep. 9Apr. 10Nov. 9Jun. 11Jan. 10Aug. 11 02000400060008000100001200014000Unemployed persons