in
Forums
Blogs
Files
Devexpress.Com
ClientCenter
Support Center
DevExpress Channel

Resize Web Chart on client

Last post 7/9/2008 11:05 PM by Timothy McCurdy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 7/4/2008 6:31 PM

    Resize Web Chart on client

    Hello

    I want to be able to resize a chart to fit the available screen size/resolution so that the users don't have to scroll the screen to see the chart.
    I can determine the screen size with the following javascript code:
         var  aw=screen.availWidth;
         var  ah=screen.availHeight;

    Now I need to know how (using Javascript) can I use that to then change the Width and Height of the rendered chart. For example in pseudo-code:
         If aw=1680 Chart.Width=900
         if aw=1024 Chart.Width=700

    Regards
    James

  • 7/9/2008 11:05 PM In reply to

    Re: Resize Web Chart on client

    Assigna  "ClientInstanceName" to your chart.  Then use "MyChart.PerformCallback("W=900");" in javascript obviously passing back to correct width based on your above code.

Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED