Pancake Responsive charts. JavaScript optional.
Pancake is a charting library for Svelte applications that allows you to visualize data with a combination of HTML, SVG and (soon) canvas/WebGL.
Unlike most charting libraries, Pancake is designed with server-side rendering in mind, meaning you can create beautiful responsive charts that may not even need JavaScript to render. Here's how.
Atmospheric CO₂
• monthly average — trend
This chart will render correctly even if JavaScript is disabled.
Source: Scripps Institution of Oceanography. Based on Carbon Clock by Bloomberg.
Usage
Documentation is TODO. In the meantime, here are some examples:
Examples
Population pyramid
Source: IPUMS. Based on Population Pyramid by Mike Bostock
Life expectancy
Source: The World Bank. Based on Life Expectancy by Nathan Yau.
Treemap
Based on Zoomable Treemap by Mike Bostock.