react-native-chart-kit
Version:
Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.
24 lines (23 loc) • 716 B
JavaScript
import { SvgClipRect, SvgCircle, SvgDefs, SvgGroup, SvgLayer, SvgLine, SvgLinearGradientDef, SvgPath, SvgRect, SvgSurface, SvgText } from "../../../svg-renderer/index";
export const lineChartSvgRenderer = {
ClipRect: SvgClipRect,
Circle: SvgCircle,
Defs: SvgDefs,
Group: SvgGroup,
Layer: SvgLayer,
Line: SvgLine,
LinearGradient: SvgLinearGradientDef,
Path: SvgPath,
Rect: SvgRect,
Surface: SvgSurface,
Text: SvgText,
capabilities: {
clipPaths: true,
gradients: true,
pathGradients: false,
rectClips: false,
text: true
},
name: "svg"
};
export const getLineChartRenderer = (renderer) => renderer ?? lineChartSvgRenderer;