Standardizing chart size


Author
Message
rich dudley
rich dudley
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
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.
     


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
rich dudley - 7 Years Ago
Nevron Support - 7 Years Ago
rich dudley - 7 Years Ago
Nevron Support - 7 Years Ago
rich dudley - 7 Years Ago
                         Hi Rich, Yes currently the chart does not measure how much labels fall...
Nevron Support - 7 Years Ago
                             This is now doing what I want it to do, but I would like to understand...
rich dudley - 7 Years Ago
                                 Hi Rich, The target resolution controls the dpi of the target device...
Nevron Support - 7 Years Ago
                                     I am currently using this code to set the overall size of the chart:...
rich dudley - 7 Years Ago
                                         Hi Rich, You can disable axis content fitting (using Fit2DAxisContent...
Nevron Support - 7 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search