PhuongNguyen Posted March 27, 2014 Report Share Posted March 27, 2014 The AxisY seem to take Integer only. If I pass in a real number like 1.9 it round up to 2 and show in the Axis Y as 2. Can Axis Y be a real number (0.xxx)? Is there any way to customize the Axis Y to take and show real (float) value? Thanks Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted March 27, 2014 Report Share Posted March 27, 2014 Internally they are handled as real numbers but our default is to show no decimals, if you want to change how Y axis labels are displayed chart1.getAxisY().getLabelsFormat().setDecimals(2); If you only want to change how tooltips are displayed without affecting how labels are shown you can use getDataFormat() instead of getLabelsFormat() JuanC Attachments.zip Quote Link to comment Share on other sites More sharing options...
0 PhuongNguyen Posted March 27, 2014 Author Report Share Posted March 27, 2014 I got it now. Thanks alot JuanC. By The Way, do you have any idea how to customize the tooltip as I discribed in the other post? Quote Link to comment Share on other sites More sharing options...
Question
PhuongNguyen
The AxisY seem to take Integer only. If I pass in a real number like 1.9 it round up to 2 and show in the Axis Y as 2.
Can Axis Y be a real number (0.xxx)?
Is there any way to customize the Axis Y to take and show real (float) value?
Thanks
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.