Jump to content
JChartFX Community
  • 0

Pie Chart Resizing


perryworld
 Share

Question

Hi,

 

We are new to jchartfx and have a question.

 

We have created a pie chart with the legend at the bottom and we need to re-size it to fit on the sidebar of our site but when we set the width of the div to anything less than 400px the legend disappears.

Is there any way we can set the width to 300px with out losing the legend.

Please see attached.

 

Thanks

Rich

 

post-46554-0-92719300-1441299460_thumb.png

post-46554-0-90781100-1441299471_thumb.png

  • Like 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

There is bug that prevents us from showing a legend where all items cannot be painted completely horizontally (when it is at the bottom/top), we will try to fix this in future builds. In the meantime you could try to

 

1) reduce the font used in the legend box

 

chart1.getLegendBox().setFont("6pt Arial");

 

2) Allow the legend box to use full width instead of the plot area width (note texts are aligned with doughnut)

 

chart1.getLegendBox().setPlotAreaOnly(false);

 

Regards,

 

JuanC

Link to comment
Share on other sites

  • 0

There is bug that prevents us from showing a legend where all items cannot be painted completely horizontally (when it is at the bottom/top), we will try to fix this in future builds. In the meantime you could try to

 

1) reduce the font used in the legend box

 

chart1.getLegendBox().setFont("6pt Arial");

 

2) Allow the legend box to use full width instead of the plot area width (note texts are aligned with doughnut)

 

chart1.getLegendBox().setPlotAreaOnly(false);

 

Regards,

 

JuanC

Thanks JuanC

 

Will try this 

 

Cheers

Rich

post-2107-13939745496252_thumb.gif

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

×
×
  • Create New...