SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Hello !
I have a chart displaying very accurate data and I would like the RolloverModifier to adopt the same format as my Y axis.
I want to avoid problems similar to the one on the screenshot attached. The tooltip is indicating -0 and I would like it to display something like -2.5E-6.
Thank you for your help,
Adrien
Hi Adrien,
You can set cursor text formatting property for your xAxis/yAxis and modifier tooltips will be formatted according to specified format string:
final IAxis yAxis = new NumericAxis(getContext());
yAxis.setCursorTextFormatting("0.0E+0");
Or you can create custom label provider for your axis and implement formatting there. For more information please take a look on our LabelProvider API tutorial.
Hope this will help you!
Best regards,
Yura
Thank you very much.
yAxis.setCursorTextFormatting("0.0E+0");
did the trick 🙂
Best Regards,
Adrien
Please login first to submit.