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
- Vinu Gilbert asked 3 years ago
- You must login to post comments
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
- Yura Khariton answered 3 years ago
-
Thanks Yura, I’ve done it with CursorTextFormatting
- You must login to post comments
Please login first to submit.