diff --git a/package.json b/package.json index a4de7dd..0498d34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-gifted-charts", - "version": "1.2.13", + "version": "1.2.14", "description": "The most complete library for Bar, Line, Area, Pie, Donut and Stacked Bar charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.", "main": "src/index.tsx", "files": [ diff --git a/src/LineChart/index.tsx b/src/LineChart/index.tsx index d4a4224..0cc111b 100644 --- a/src/LineChart/index.tsx +++ b/src/LineChart/index.tsx @@ -413,6 +413,7 @@ export const LineChart = (props: propTypes) => { return item; }); } + return props.data; }, [props.yAxisOffset, props.data]); const data2 = useMemo(() => { if (!props.data2) { @@ -424,6 +425,7 @@ export const LineChart = (props: propTypes) => { return item; }); } + return props.data2; }, [props.yAxisOffset, props.data2]); const data3 = useMemo(() => { if (!props.data3) { @@ -435,6 +437,7 @@ export const LineChart = (props: propTypes) => { return item; }); } + return props.data3; }, [props.yAxisOffset, props.data3]); const data4 = useMemo(() => { if (!props.data4) { @@ -446,6 +449,7 @@ export const LineChart = (props: propTypes) => { return item; }); } + return props.data4; }, [props.yAxisOffset, props.data4]); const data5 = useMemo(() => { if (!props.data5) { @@ -457,6 +461,7 @@ export const LineChart = (props: propTypes) => { return item; }); } + return props.data5; }, [props.yAxisOffset, props.data5]); const scrollToEnd = props.scrollToEnd || false;