|
Gantt legend size |
Posted by Marko on Apr-12-2011 15:38 |
|
Hi
I have a problem with the Gantt Legend. If the legend box is higher than the task area, then it is automatically cropped, see image. How can I force ChartDirector to resize the chart and show the whole legend
Thanks
|
Re: Gantt legend size |
Posted by Peter Kwan on Apr-12-2011 18:32 |
|
Hi Marko,
I think you may resize the chart to take into consideration of the legend height. (As I am not sure of your programming language, I will use VB/VBScript in the following examples.)
.... after entering all the data and setting up the chart ....
Set legendBox = c.layoutLegend()
Call c.setSize(c.getWidth(), legendBox.getTopY() + legendBox.getHeight() + 5)
Hope this can help.
Regards
Peter Kwan |
|