Legend width
Posted: Fri Jul 16, 2010 12:11 pm
The legend of my graph is too large.
How can I reduce it?
Is there any way to break the line?
How can I reduce it?
Is there any way to break the line?
Code: Select all
for (int i=0; i<tChart1.getSeriesCount(); i++)
{
tChart1.getSeries(i).setTitle(tChart1.getSeries(i).getTitle().substring(0,10) + "...");
}
Code: Select all
tChart1.getLegend().setCustomPosition(true);
tChart1.getLegend().setTop(100);
tChart1.getLegend().setLeft(100);
Code: Select all
tChart1.getLegend().setAlignment(LegendAlignment.BOTTOM);