fixed data issue with Line and Area charts

This commit is contained in:
Abhinandan-Kushwaha 2022-04-28 03:07:57 +05:30
parent 434ee24010
commit 59c81188a1
2 changed files with 6 additions and 1 deletions

View File

@ -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": [

View File

@ -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;