I´m having problems resizing a chart.
I´m using the method ChartPanel.setBounds but it is distorcing the chart.
How do I fix it?
thanks in advance
Marcelo
Problems resizing a chart
Re: Problems resizing a chart
Hi Marcelo,
JFreeChart will draw a chart to fit any size ChartPanel. The size of the ChartPanel is determined by the layout manager as for any other Swing component. You shouldn't try to set the size of the panel yourself, always let the layout manager take care of it...
Regards,
DG.
JFreeChart will draw a chart to fit any size ChartPanel. The size of the ChartPanel is determined by the layout manager as for any other Swing component. You shouldn't try to set the size of the panel yourself, always let the layout manager take care of it...
Regards,
DG.
Re: Problems resizing a chart
But what is the difference between set the size of the panel or let layout
manager do it? Theoretically the behaviour of the chart must be the same,
right?
Is there a way to set the maximum height of the bars in the chart?
Thanks in advance. Best regards.
Marcelo
manager do it? Theoretically the behaviour of the chart must be the same,
right?
Is there a way to set the maximum height of the bars in the chart?
Thanks in advance. Best regards.
Marcelo