The legend of my graph is too large.
How can I reduce it?
Is there any way to break the line?
Legend width
Legend width
- Attachments
-
- Chart.JPG (49.21 KiB) Viewed 5982 times
Re: Legend width
Hi Wheb,
You could change the series titles for something shorter:
You could also set the legend position manually:
Or you could try other automatic alignment:
You could change the series titles for something shorter:
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);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |