Legend with only one Line displays no title
-
- Newbie
- Posts: 1
- Joined: Wed May 22, 2013 12:00 am
Legend with only one Line displays no title
I have a fastline chart with 1 - n lines. For every line I set a title ($$line->setTitle($print_title);) It works correct, if there are multiple lines in the chart. It displays the title of every line in the legend. But if there is only one line, the legend automatically displays the values instad of the title. How can I fix it?
Re: Legend with only one Line displays no title
Hi,
This is the behaviour of the legend with Auto LegendStyle, the default one. You can change it to Series as follows:
This is the behaviour of the legend with Auto LegendStyle, the default one. You can change it to Series as follows:
Code: Select all
$tChart1->getLegend()->setLegendStyle(LegendStyle::$SERIES);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |