Profile Picture

Change Chart size manually

Posted By Danny Dam 14 Years Ago
Author
Message
bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Danny,

Do you use panel docking? In the case of DockStyle.Fill the chart will occupy the whole available area of the parent panel and the size property is ignored.

Best regards,
Bob



Danny Dam
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 3, Visits: 1
Hi Bob,

I used your solution for changing Chart size as I want but it does not apply to chart (I checked in code and newest Nevron example but it works in older version).

bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Danny,

I see - there is no way to tell the chart to ignore the labels size, but you can increate the chart panel size in this case using the Size property:

chart.Size = new NSizeL(new NLength(80, NRelativeUnit.ParentPercentage), new NLength(140, NRelativeUnit.ParentPercentage));

Why do you need such functionality - BTW it can easily be added...

Best regards,
Bob



Danny Dam
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 3, Visits: 1
_ Before changing X axis labels

http://www.screencast.com/t/M2JiN2Y5O

_ After changing X axis label, chart is resized.

http://www.screencast.com/t/Y2U4ZmI5Zj

Could I change chart size as before changing X axis labels?

Thanks in advance.

Danny

bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Danny,

I'm not sure that I understand the question properly - what do you mean by "initial size" - please elaborate? Can you post a screenshot?

Best regards,
Bob



Danny Dam
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 3, Visits: 1
I added new Bar or Line chart with simple X axis labels then I typed long texts to X axis labels, axis content is resized automatically for fir graph frame. How can I change it to initial size? Could you please help me?



Similar Topics


Reading This Topic