Android Question How to find the match between two curves in a graph generated by the Xchart library?

OsmarMP

New Member
hello I am developing an application in B4A that graphs two curves, for this I use the xChart library, however, I have not found a way to find the coordinates (x, y) where these two curves intersect, the curves are graphed from two groups of data.

Will there be any way to find the intersection of the curves?
Thanks.
 

klaus

Expert
Licensed User
Longtime User
I suppose that you are using a YXCHART, it ls the only one which has x and y coordinates.
There is no function in the library which checks curve intersecting.
You need to go through the coordinates and check intersections, and then interpolate between the two samples to get the exact coordinates.
 
Upvote 0
Top