- Chart - [x] `baseline` support - Value guaranteed to be visible in domain (x/y). Useful with optional negative values since `xDomain={[0, null]}` would ignore negative values - [x] TransformContext integration - [x] GeoContext integration - [x] TooltipContext integration - [x] Add `chartContext()` with better types - Handled via [ChartContext](https://github.com/techniq/layerchart/blob/main/packages/layerchart/src/lib/components/ChartContext.svelte#L90-L92) component - [x] Add `radial` at Chart context level instead of individual components (see [RadialLine](http://localhost:3002/docs/examples/RadialLine) examples) - [x] Better group/stack integration - see use of [createDimensionGetter()](https://github.com/techniq/layerchart/blob/main/packages/layerchart/src/lib/utils/rect.ts#L17) - Would be nice if could have derived scales (`x1scale`, `y1scale`) needed for [group](https://github.com/techniq/layerchart/blob/main/packages/layerchart/src/lib/utils/scales.ts#L47) scales - See [derive-scales](https://github.com/mhkeller/layercake/tree/derive-scales) branch in LayerCake - [x] Dedicated `cScale` color scale instead of using `rScale` (which is also useful for radius, etc) - [x] Integrate with `<Legend>` - [ ] [Bounds](https://github.com/techniq/layerchart/blob/main/packages/layerchart/src/lib/components/Bounds.svelte) integration - Modify xScale/yScale along with using [motionScale](https://github.com/techniq/layerchart/blob/main/packages/layerchart/src/lib/utils/scales.ts#L127) with tweening - Useful with `Brush` (integration) - [ ] Improved accessor (using LayerChart's accessor) - [ ] Improved types - [x] Simplify `Chart`/`LayerCake`/`ChartContext` which enables accessing LayerCake context and calculated values (width/height, scales, etc) and improves types (`chartContext()`) ```svelte <Chart> <LayerCake> <ChartContext> <slot /> </ChartContext> </LayerCake> </Chart> ``` ## Layout components - Canvas - [x] Full width/height of container (like Svg) ([commit](https://github.com/techniq/layerchart/commit/95a2c61118a70f23ee42bdfabdec52f6a20b494d)) - [x] `scaleCanvas()` integration - [x] TransformContext integration - [x] `class` support - Svg - [x] TransformContext integration - [x] `class` support - Html - [x] `class` support
baselinesupportxDomain={[0, null]}would ignore negative valueschartContext()with better typesradialat Chart context level instead of individual components (see RadialLine examples)x1scale,y1scale) needed for group scalescScalecolor scale instead of usingrScale(which is also useful for radius, etc)<Legend>Brush(integration)Chart/LayerCake/ChartContextwhich enables accessing LayerCake context and calculated values (width/height, scales, etc) and improves types (chartContext())Layout components
scaleCanvas()integrationclasssupportclasssupportclasssupport