Pre loader

Get Value from FastLineRenderableSeries based on XAxis Value

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


I have a chart that has a DateTime XAxis and a NumericYAxis. I want to do something such as FastLineRenderableSeries.GetYValueAt(datetime) yet i can’t find a suitable extension method for such thing. Seems like a fairly simple thing but the documentation does not cover it.

  • You must to post comments

Hi Clifford,

We have an API to do this – called the HitTest API.

You can find Hit Test API documentation here.

And examples here.

Basically, you call RenderableSeries.HitTest to get the details of a point under an X,Y coordinate, or RenderableSeries.VerticalSliceHitTest to get the details of a point at an X-Value.

The HitTestInfo result contains details about the point that was hit.

Some code like this should work:

        FastLineRenderableSeries rSeries;
        DateTime dateTime;
        double xCoord = rSeries.XAxis.GetCoordinate(dateTime);
        var hitTestInfo = rSeries.VerticalSliceHitTest(new Point(xCoord, 0));

        Console.WriteLine("Y-Value is " + hitTestInfo.YValue.ToString());
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.