layercake
layercake copied to clipboard
Add transform components
I was thinking it could be useful to provide for various transform buckets that wrap <LayerCake> components and whose job it is to transform your data and then pass it back out. Some ideas
- Stack To stack your data. It would return variables for
dataandflatData - Group For things like converting from wide to long data and grouping. Maybe
WideToLongis a separate component - Facet This was the main use case that got me thinking. Similar to group but it creates small multiples. First attempt: https://github.com/mhkeller/layercake/blob/transforms/src/lib/transforms/Facet.svelte
- Bin For easier histogramming
These should be able to be combined such as Facet and Bin could created a faceted histogram.