|
Legend box overlapping or Crossing plot area |
Posted by Laxman on Apr-07-2009 20:20 |
|
hi,
I am trying to generate graph with legendbox w.r.t plot area. when data is too large which crosses the plot area or it overlaps the chart area.how to avoid overlap of legendbox and chart area?
regards,
Laxman |
Re: Legend box overlapping or Crossing plot area |
Posted by Peter Kwan on Apr-08-2009 04:16 |
|
Hi Laxman,
If you are using ChartDirector Ver 5.0, you may get the size of your legend box, and then adjust your plot area size so that it cannot overlap with the legend box.
For example (in VB/VBScript):
Set c = cd.XYChart(.........)
Call c.setPlotArea(..............) 'default plot area position
...... create chart as usual and enter all data .......
'get legend box size
Set legendBox = c.layoutLegend()
height = legendBox.getHeight()
width = legendBox.getWidth()
.... use setPlotArea to change plot area size based on the legend box size .........
Hope this can help.
Regards
Peter Kwan |
|