Profile Picture

How to set chart size respectively for width and height ?

Posted By CHANGMIN KIM 6 Years Ago

How to set chart size respectively for width and height ?

Author
Message
CHANGMIN KIM
Question Posted 6 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 5 Years Ago
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 ?

Nevron Support
Posted 6 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)Supreme Being (4,437 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 3,055, Visits: 4,055
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





Similar Topics

 
Topic (New Replies)
Topic (New Replies)
No member picture
4 Years Ago
Last Post:
Topic (New Replies)
Topic (New Replies)
Topic (New Replies)
By Yuan Chu, 5 Years Ago
No member picture
5 Years Ago
Last Post: Yuan Chu
Topic (New Replies)
No member picture
5 Years Ago
Last Post: Fai Mai
Topic (New Replies)
No member picture
5 Years Ago
Last Post: Fai Mai
Topic (New Replies)
No member picture
5 Years Ago
Last Post: Wang Shu
Topic (New Replies)
By Chung Kung, 5 Years Ago
Topic (New Replies)
No member picture
5 Years Ago
Last Post: Zhen Yu
Topic (New Replies)
No member picture
5 Years Ago
Last Post: Xao Ming
Topic (New Replies)
By Wo Gungfo, 5 Years Ago
Topic (New Replies)
Topic (New Replies)
No member picture
5 Years Ago
Last Post: Wang Xiu
Topic (New Replies)
Topic (New Replies)
Topic (New Replies)
Topic (New Replies)
By Ram Chandran, 11 Years Ago
Topic (New Replies)
Topic (New Replies)

Reading This Topic

1 active, 1 guest, 0 members, 0 anonymous.
No members currently viewing this topic!