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

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.