Handeled Error when all the data values in line chart is 0
This commit is contained in:
parent
dfb0490642
commit
9ff203f9ed
|
@ -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": [
|
||||
|
|
|
@ -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............')
|
||||
|
|
Loading…
Reference in New Issue