Handeled Error when all the data values in line chart is 0

This commit is contained in:
Abhinandan Kushwaha 2022-01-12 18:25:24 +05:30
parent dfb0490642
commit 9ff203f9ed
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "react-native-gifted-charts",
"version": "0.2.4",
"version": "0.2.5",
"description": "The most complete library for Bar, Line, Area, Pie and Donut charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.",
"main": "src/index.tsx",
"files": [

View File

@ -450,7 +450,7 @@ export const LineChart = (props: propTypes) => {
totalWidth += spacing;
});
const maxValue = props.maxValue || maxItem;
const maxValue = props.maxValue || maxItem || 10;
useEffect(() => {
// console.log('comes here............')