Page 1 of 1

Ranges annotation

Posted: Wed Oct 01, 2014 9:43 am
by vifani
Hi,
Is there a simple way to draw a range on x axis with mouse and display an annotation with the value of the selected range?
Is possible to add markers where the range edges intersect the series too?

Thank you

Re: Ranges annotation

Posted: Wed Oct 01, 2014 3:11 pm
by ArctionPasi
To draw a range, use a Band. In band.ValuesChanged event handler, update the annotation.

To put markers on the range edges, again use the band.ValuesChanged event handler and use pointLineSeries.SolveNearestDataPointByValue and set that to marker's X value.

Something like that...