SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.


Is there a way to find out what the Y value is where the VerticalLineAnnotation intersects the line chart that it is crossing over?

Edit: The attached image shows these intersections. I would like to know how I can get a hold of those y values.

  • You must to post comments

Very good question

VerticalSliceModifier.SeriesData.SeriesInfo exposes a collection of SeriesInfo – viewmodels for tooltips. However, it is difficult to determine which are for which slice.

You might have to do some custom coding to achieve this. Can you share why you want to do it? (What’s the requirement)

Best regards,

  • Ryan Woods
    I would like to do this to bind the Y1 and Y2 values of a LineAnnotation to the Y intercepts of two VerticalLineAnnotations. I have almost got it working, but if there is more than one series of data, then it uses the incorrect value.Right now, I have: Y1=”{Binding ElementName=sliceModifier, Path=SeriesData.SeriesInfo[1].YValue, FallbackValue=0}” and this works great if only one series is visible. The moment I make a second series visible on this chart, it fails to find the correct Y Value.
  • Andrew
    SeriesInfo does have the RenderableSeries, so I guess using a converter, you could bind to SeriesData, and pass in a SeriesName as string. Then search in c# code in your converter for SeriesData.SeriesInfo.FirstOrDefault(s => s.RenderableSeries.DataSeries.SeriesName == seriesName).
  • Ryan Woods
    That is exactly what I wound up doing except I used a skip(Number).FirstOrDefault to find the appropriate series.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.