We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Chart image height

Hi,

How to change the height and width of the chart image?

I am exporting two chart images to two picture boxes. Height and width of both the chart images are same. Picture box alignment,location,height and width also same and picturebox size mode is stretch image. Then also both the picture box are not properly aligned because of difference in height in chart images.

Pls provide solution for this asap

Hi,


If you need to set the chart’s height and width, you may simply try to use:

Chart.ChartObject.Width/Widthxxxx and Chart.ChartObject.Height/Heightxxxx attributes.
E.g

chart.ChartObject.Height = 200;
chart.ChartObject.Width = 200;

Thank you.