I have another question about coordinates:
Is it possible to get coordinates of axis X and Y ?
If I understood convertValueToPixel right, I have for example this data: [[0,12],[10,66],[20,42]]
And in order to get coordinates of [10,66], I need to write:
chart.axisX.convertValueToPixel(10) and chart.axisY.convertValueToPixel(66) ? Is that correct ?
Then if that’s right I just have to write chart.axisX.convertValueToPixel(0) and chart.axisY.convertValueToPixel(0) to get the coordinate of axis X?
You can find out the intersection points of the curves by solving the original equations of the curves intersecting each other. This will give you accurate result.
Many curve can pass through finite number of discontinuous dataPoints. CanvasJS uses approximate Bézier curve interpolation, to represent the curve passing through user given dataPoints. So, it’s almost impossible to construct an unique equation passing through the sample dataPoints and find intersection between two spline curve.
However, there is a workaround using Image processing and convertPixelToValue method (given in API). But this will only give you an approximate Intersecting coordinate of the curves.