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,
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!
Please login first to submit.