Jump to content
JChartFX Community
  • 0

"java is not defined" error thrown when using java.awt.Point method


naveen

Question

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...