Pre loader

Why in SeriesInfo property XValue and YValue empty or null ?

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

Answered
0
0

Hi,
I’m testing the SciChart control and got a problem: in OhlcSeriesInfo property XValue and YValue empty or null.
Please see small example:

Attachments
  • You must to post comments
Best Answer
0
0

Hi Serge,

The XValue and YValue properties are of type IComparable, which doesn’t have the ToString method, so the values can’t be shown by default. You need to apply a ValueConverter or add a format string:

<TextBlock Text="{Binding YValue, StringFormat=\{0:0.00\}}" />

Hope this helps!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies