layercake.graphics - Layer Cake

Description: A framework for mostly-reusable graphics with svelte

graphics (6291) data visualization (1070) svelte (197) reusable (170) data viz (32) layercake (19) graphics framework (1) svelte graphics framework (1) mostly-reusable (1)

Example domain paragraphs

Layer Cake is a headless graphics framework for Svelte . It uses the measurements of your target div and your data extents to create scales that stay synced on layout changes. Use these scales to organize multiple, mostly-reusable Svelte components , whether they be SVG, HTML, Canvas or WebGL. Since they all share the same coordinate space, you can build your graphic one layer at a time. It can also be used to easily create responsive graphics server-side that work without JavaScript .

Unlike other libraries, chart components live inside your project , so you have complete control for customization . It also includes some handy helper functions to help format your data into the right shape.

Read the guide , try the starter template or check out the example components . See the examples below and even edit them live. Here's a sample of what the code looks like:

Links to layercake.graphics (1)