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

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.