Jump to content
JChartFX Community
  • 0

Get rid of marging


jayman18

Question

Hello,

 

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!

 

post-47670-0-65290500-1461668178_thumb.png

Link to comment
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();

plotMargin.setLeft(1);
plotMargin.setTop(1);
plotMargin.setRight(1);
plotMargin.setBottom(1);
 
Note that 1 is the minimum value for the margins as 0 means to use our defaults.
 
Regards,
 
JuanC
Link to comment
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.

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...