naveen Posted November 21, 2013 Report Share Posted November 21, 2013 I want to customize the point label position for the jchartfx chart. From jChartFX API Documentation, I have found the following method to do it chart1.getAllSeries().getPointLabels().setOffset(new java.awt.Point(4, 5)); but it is throwing "java is not defined" error in console for all browsers. Could any one can help me to customize the point label position? Note: The Alignment attributes "cfx.StringAlignment.Near, cfx.StringAlignment.Far and cfx.StringAlignment.Center" are not needed in my case. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted November 22, 2013 Report Share Posted November 22, 2013 The documentation is incorrect (it was probably copied/translated from our Java desktop docs). To set the offset you have to pass a string with the X and Y separated by a comma, e.g. chart1.getAllSeries().getPointLabels().setOffset("10,4"); JuanC Quote Link to comment Share on other sites More sharing options...
0 naveen Posted November 25, 2013 Author Report Share Posted November 25, 2013 Thanks a lot JuanC!!! I can align the point labels now.. Thanks Quote Link to comment Share on other sites More sharing options...
Question
naveen
I want to customize the point label position for the jchartfx chart. From jChartFX API Documentation, I have found the following method to do it
chart1.getAllSeries().getPointLabels().setOffset(new java.awt.Point(4, 5));
but it is throwing "java is not defined" error in console for all browsers. Could any one can help me to customize the point label position?
Note: The Alignment attributes "cfx.StringAlignment.Near, cfx.StringAlignment.Far and cfx.StringAlignment.Center" are not needed in my case.
Thanks in advance.
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.