Is there a way to autoresize a chart based on the client's screen resolution? I have tried setting the chart width and height property, but it seems to ignore those commands unless I need to put those in a certain subroutine or function to get them to work. I am using TeeChart for .Net version 1.0.1189.31308. Below is code where I define chart in webform which is based on 800x600 resolution. I would like to add code to change the chart width in particular to match the size of the client's screen if at all possible without hardcoding. Is this possible?
<TCHART:WEBCHART id="WebChart1" runat="server" Width="760" Height="500px" TempChart="File" AutoPostback="False"></TCHART:WEBCHART>
Thanks,
Scott
Resize Chart
Ho Scott,
have you tried to change the Width and Height using something like the following code ? :
have you tried to change the Width and Height using something like the following code ? :
Code: Select all
WebChart1.Width = Unit.Pixel(700);
WebChart1.Height = Unit.Pixel(700);
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 11
- Joined: Thu Mar 06, 2003 5:00 am
-
- Newbie
- Posts: 11
- Joined: Thu Mar 06, 2003 5:00 am