Pre loader

RollOverModifier value Decimals

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

0
0

Hi team,

In my app,i’m using a custom rollover modifier as tool tip.I am representing y axis value (numerical value) in tooltip.I would like to have decimal places upto 3 digits in tooltip.do you have any suggestion to how i could achieve this. i’m attaching current screenshot along with this question.

Thanks
Vinu Gilbert

Version
4.2.0.4557
Images
  • You must to post comments
1
0

Hi Vinu,

Well, answer depends on how you create this custom tooltip. We have an example in demo application where we use seriesInfo.getFormattedYValue() which returns yValue formatted using yAxis.formatCursorText(). If you using same approach then you can change formatting of yAxis by setting CursorTextFormatting

 final IAxis yAxis = sciChartBuilder.newNumericAxis().withCursorTextFormating("0.000").build();

If you’re using other approaches then you’ll need to adjust formatting string in your custom tooltip and format yValue differently

Best regards,
Yura

  • Vinu Gilbert
    Thanks Yura, I’ve done it with CursorTextFormatting
  • 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