Nevron Forum

Dynamically change chart width/height using javascript

https://www.nevron.com/Forum/Topic6239.aspx

By Bhumi Patel - Thursday, March 8, 2012

Hi All,

I am using collapsible panel on my page. And I would like to change chart width/height from javascript no collapse/expand.

Is there a way to change the width/height of the chart from javascript??

Thanks,
Bhumi
By Nevron Support - Thursday, March 8, 2012

Hi Bhumi,

There is no way to that in AJAX mode, however with a simple postback it is possible - you need to modify the Width / Height of the control:

protected void ResizeButton_Click(object sender, EventArgs e)
{
nChartControl1.Width = 800;
}

Our new AJAX controls called ThinWeb will support this feature, however they will available in Vol1.2012.

By Bhumi Patel - Friday, March 9, 2012

Thank you for your reply!! That worked for me!!