mirror of
https://github.com/status-im/react-native-gifted-charts.git
synced 2025-02-23 09:08:13 +00:00
Fixed issue with hideOrigin in Line charts
This commit is contained in:
parent
c31416bd3f
commit
dfc37ff1a7
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-gifted-charts",
|
"name": "react-native-gifted-charts",
|
||||||
"version": "0.2.6",
|
"version": "0.2.7",
|
||||||
"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.",
|
"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",
|
"main": "src/index.tsx",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -1061,16 +1061,22 @@ export const LineChart = (props: propTypes) => {
|
|||||||
marginBottom: stepHeight / -2,
|
marginBottom: stepHeight / -2,
|
||||||
},
|
},
|
||||||
]}>
|
]}>
|
||||||
{showFractionalValues
|
{hideOrigin
|
||||||
|
? index === horizSections.length - 1
|
||||||
|
? ''
|
||||||
|
: showFractionalValues
|
||||||
|
? sectionItems.value
|
||||||
|
? sectionItems.value
|
||||||
|
: '0'
|
||||||
|
: sectionItems.value
|
||||||
|
? sectionItems.value.toString().split('.')[0]
|
||||||
|
: '0'
|
||||||
|
: showFractionalValues
|
||||||
? sectionItems.value
|
? sectionItems.value
|
||||||
? sectionItems.value
|
? sectionItems.value
|
||||||
: hideOrigin
|
|
||||||
? ''
|
|
||||||
: '0'
|
: '0'
|
||||||
: sectionItems.value
|
: sectionItems.value
|
||||||
? sectionItems.value.toString().split('.')[0]
|
? sectionItems.value.toString().split('.')[0]
|
||||||
: hideOrigin
|
|
||||||
? ''
|
|
||||||
: '0'}
|
: '0'}
|
||||||
</Text>
|
</Text>
|
||||||
) : null}
|
) : null}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user