@chart-kit/skia-renderer
v7.0.0-next.4
Published
Commercial Skia renderer for Chart Kit v2 Pro.
Readme
@chart-kit/skia-renderer
Commercial Skia renderer addon for Chart Kit Pro.
This package intentionally avoids a static import of
@shopify/react-native-skia. Pro customers that install Skia can pass the Skia
module into createSkiaRenderer({ skia }), keeping the native dependency
optional.
Current exports:
createSkiaRendererCapabilitiescreateSkiaRendererDescriptorcreateSkiaRenderercreateSkiaTextMeasurerskiaRendererskiaRendererPreviewcompatibility alias
Available status:
- injected Skia primitive adapter for Canvas, Group, Path, Rect, RoundedRect, Circle, Line, Text, LinearGradient, and rect-clipped Groups
CombinedChartcan accept the injected renderer for bars, lines, axes, legend, selection overlay, and default tooltipCandlestickChartcan accept the injected renderer for its OHLC body, volume bars, session markers, selection overlay, default tooltip, and range selector- vendored shared chart helpers can use the injected renderer while remaining private implementation details
- sticky-axis labels require a Skia font through
createSkiaRenderer({ skia, font }) - text primitives support measured
textAnchoralignment when the supplied Skia font exposesmeasureText - rounded bars and tooltip surfaces use
RoundedRectwhen the host Skia module provides it, with a plainRectfallback - path-local area gradients are used when
skia.LinearGradientandskia.vecare available; SVG-style gradient defs remain disabled for Skia - threshold line and area overlays use path-level rect clips when
skia.rectis available; SVG URL clip-path refs remain disabled for Skia - local CombinedChart renderer contract coverage lives in
test/react-native/charts/combined/renderer.test.ts - local CandlestickChart renderer contract coverage lives in
test/react-native/charts/candlestick/renderer.test.ts
