react-native-graph
react-native-graph copied to clipboard
Possibility to get y position of a point/value at an index?
With a points array as usual, (how) is it possible to get the y position of a point (for example points[1]) on the linegraph? I'm trying to draw a line on max and min similar to the Top and BottomAxisLabels examples, but they are (obviously?) just on the top and bottom of the graph "frame".
- And something additional; there seems to be some padding visible however as far as I understood, there should be no padding if Top/BottomAxisLabel is not set?
const points = [
{
value: 100,
date: new Date('2020-01-01')
},
{
value: 200,
date: new Date('2020-01-01')
},
{
value: 300,
date: new Date('2020-01-01')
},
...
]