Profile Picture

Standardizing chart size

Posted By rich dudley 6 Years Ago
Author
Message
rich dudley
Question Posted 6 Years Ago
View Quick Profile
Forum Guru

Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 33, Visits: 76
when setting the size of the chart or the chartControl I dont seem to get a predictable output size of the file exported fromt the chartControl. For example:
int Length = 516;
int Height = 288;
NCartesianChart chart = (NCartesianChart)chartControl.Charts[0];
chart.Size = new NSizeL(new NLength(Length, NGraphicsUnit.Point), new NLength(Height, NGraphicsUnit.Point));
The size of the chart output by this is 482.023 pt x 388.919 pt.  If I add the following:
chart.BoundsMode = BoundsMode.Stretch;
The size of the chart becomes 682.023 pt x 388.919 pt.  How do I get a predictable size output? I currently have export it repeatedly, gradually adjusting the size until it is the size I want.
     






Similar Topics


Reading This Topic