I have a line chart with over 20 lines. I'm displaying the chart on a web page via a servlet.
When I take the default values (requesting a legend) the actual chart is squeezed by the size of the legend so most of the lines are not distinguishable. I need to change the y-axis height to spread out the plotted lines so then can be seen. I don't want to remove the legend but instead change the overall height of the drawn object.
I can't find this in the doc (which I've purchased) and am going blind chasing the javadoc.
Changing height of plot
Re: Changing height of plot
Never mind
By changing the y-dimension of the generated PNG I got the effect I wanted

Re: Changing height of plot
OK, glad you found a solution. Another thing to note is that you can change the position of the legend:
Legend legend = myChart.getLegend();
legend.setAnchor(Legend.EAST);
That will sometimes help.
Regards,
Dave Gilbert
Legend legend = myChart.getLegend();
legend.setAnchor(Legend.EAST);
That will sometimes help.
Regards,
Dave Gilbert