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

0
0

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

Version
24
Images
  • You must to post comments
0
0

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

  • You must to post comments
0
0

Thank you very much.

yAxis.setCursorTextFormatting("0.0E+0");

did the trick 🙂

Best Regards,

Adrien

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.