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 Stackoverflow.com where you can earn rep for your questions!

0
0

I have attempted to change the text format on the cursors that show the Y-Intercept on my vertical line annotations. WIthin by ModifierGroup, I added the following:

<s:CursorModifier ContentStringFormat="0.000"/>

I suspect that since the Y intercept is a double or float, it is causing the ContentStringFormat functionality not fire (can’t deal with a non-string). Is there a way to set the format of these cursors to a 0.000 format? Right now they are showing as 0.00.

Thank you

Version
4.0.30319
  • You must to post comments
0
0

Hi Ryan,

Have a look at the SciChart WPF documentation on TextFormatting. We present a couple of ways you can do this.

  1. Using AxisBase.CursorTextFormatting (simple string format)
  2. Using AxisBase.LabelProvider which allows for complex string formatting
  3. By templating the CursorModifier AxisLabels.

Please let me know if this helps.

Best regards,
Andrew

  • Ryan Woods
    This applies to the axis, right? I am looking to format the cursor on the verticalLineAnnotation intersection with the Renderable Series. Within Scichart, does the term axis have a more relaxed meaning than X-axis and Y-axis?
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.