How to set chart size respectively for width and height ?


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Kim,
You also need to set the chart bounds mode to Stretch:
chart.BoundsMode = Nevron.GraphicsCore.BoundsMode.Stretch;
as by default the chart will try to preserve the specified aspect ratio. 
Let us know if you meet any problems or have any questions.

Best Regards,
Nevron Support Team


CHANGMIN KIM
CHANGMIN KIM
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 10, Visits: 25
Hello Team,

I want to set chart size like below :

NChart chart = nChartControl1.Charts[0];
chart.Size = new NSizeL(new NLength(20, NRelativeUnit.ParentPercentage), new NLength(80, NRelativeUnit.ParentPercentage));


But, The width and length shrinks at the same time.(even though I really want my chart to be vertically long)
How can I make my chart be sized respectively for width and height ?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search