How do I set chart size (width, height)?

Oct 30, 2014 at 1:35 PM
Edited Oct 30, 2014 at 2:09 PM
Hi

Is there a way to set chart width and height? Aside from setting the <DIV> height and width.

using one of the examples, I generate a chart in the controller and return View(chart);

would like to be able to set width =xpx and Height =y px

I don't seem to be able to find the set method for this. The JS version seems to have these attributes.

Please advise

Thanks
Mike
Nov 12, 2014 at 7:45 PM
You should always post your code with a question like this. You can do it in the initializer...
InitChart(new Chart {  Height = 600, Width = 1100 })