Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

find the overlapping points of two series in devexpress chart

As you can see , I have a winform chart ( DevExpress Chart ) with two series . enter image description here
Each series has their points.
And what I want is to find the overlapping points of those two series ( pointed by green circle in picture ) .

For example ( 3.4 for the first overlapping point and 7.3 for the second overlapping point ) .
Thanks .

like image 663
zey Avatar asked Mar 14 '17 16:03

zey


1 Answers

If you have direct access to the Series collection, you could:

var intersection = Series[0].Points.Intersect(Series[1].Points);

If you are creating discrete Point objects along the way, you may have to define the matching behavior, as well.

like image 63
DonBoitnott Avatar answered Sep 27 '22 21:09

DonBoitnott