Jump to content
JChartFX Community
  • 0
Sign in to follow this  

Get rid of marging




how to get rid of the space between chart and the surrounding box and full use the space?


Furthermore I need to have a fix space between chart area and underlying data grid.


In the picture, you see the space (the red lines). I want the pie to fill it completely


Another question or if first is not possible: Can I align the chart to the box bottom or box top?


Thanks in advance!



Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You can remove that space by adding the following code


var plotMargin = chart1.getPlotAreaMargin();

Note that 1 is the minimum value for the margins as 0 means to use our defaults.

Share this post

Link to post
Share on other sites

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.

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.

Sign in to follow this  

  • Create New...