Profile Picture

Resize the Chart to fill all

Posted By Frank Thiesing 13 Years Ago
Author
Message
Frank Thiesing
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1
Hello,

is there a way to resize the chart, to fill all avaible space? On a widescreenmonitor i got on right- and leftside much unused whitespace.

...
And again i can't add a normal jpg (resize.JPG), cause :

"One of the files you have attempted to attach to this post is not a permitted MIME type."
...

So here is a link to the picture:
http://131.173.120.219/resize.JPG

best regards

Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi Frank,

Yes - you should switch the chart in bounds mode stretch and optionally use docking - for example:

NChart chart = nChartControl1.Charts[0];
chart.BoundsMode = BoundsMode.Stretch;
chart.Dock = DockStyle.Fill;
chart.Margins = new NMarginsL(5, 5, 5, 5);

will tell the chart to occupy the whole area of its containing panel, minus 5 points from the sides.

Hope this helps - let us know if you meet any problems.

 



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic