react-native-graph icon indicating copy to clipboard operation
react-native-graph copied to clipboard

Possibility to get y position of a point/value at an index?

Open himynameisubik opened this issue 1 year ago • 0 comments

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".

image

  • 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')
    },
    ...
 ]

himynameisubik avatar Nov 06 '23 09:11 himynameisubik