Forums

Resize Web Chart on client

Last post 7/9/2008 11:05 PM by Timothy McCurdy. 1 replies.
Sort Posts: Previous Next
  • James Organ

    Resize Web Chart on client

    7/4/2008 6:31 PM
    • Not Ranked
    • Joined on 4/5/2008
    • Posts 15

    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

  • Timothy McCurdy

    Re: Resize Web Chart on client

    7/9/2008 11:05 PM
    • Not Ranked
    • Joined on 7/31/2007
    • Posts 30

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

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.