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