Chart width
Posted: Mon Jul 12, 2004 8:27 am
Hi,
I have been trying to coordinate the width of two charts. Chart A have the legend on, while Chart B don't.
I need to change the width of Chart B so that it will look like both Chart A and B have the same width, but without the legend(for chart B).
I have been trying to resize Chart B through this code:
TChartB.Width = TChartA.Width - (LegendRect * TwipsPerPixelY)
where LegendRect is the width of the legend rectangle.
However, I noticed that even after I step through this line, the width of the chart doesn't change (even if the return value of ChartA width and legend rect width is different from the original ChartB width). ChartB retains its old width.
Am I doing this correctly or is there any other way to change the width of the chart.
Thanks
I have been trying to coordinate the width of two charts. Chart A have the legend on, while Chart B don't.
I need to change the width of Chart B so that it will look like both Chart A and B have the same width, but without the legend(for chart B).
I have been trying to resize Chart B through this code:
TChartB.Width = TChartA.Width - (LegendRect * TwipsPerPixelY)
where LegendRect is the width of the legend rectangle.
However, I noticed that even after I step through this line, the width of the chart doesn't change (even if the return value of ChartA width and legend rect width is different from the original ChartB width). ChartB retains its old width.
Am I doing this correctly or is there any other way to change the width of the chart.
Thanks