Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

OBSOLETE: How to resize a chart according to the actual size of a Web Browser's window

$
0
0

This example illustrates the capability to resize a WebChartControl to fit the page width when the web page is resized.

See also:
- E1242;
- E568;
- E258.

NOTE: The approach described in this example is a proof of the concept, but it should not be used in any real-life scenario. We have added the Obsolete prefix to emphasize this statement. If multiple users try to resize charts, the server may not be able to handle a very large amount of requests at once. As a better solution, add the 'Update' button to the tab page and use it to send a callback and resize the chart only when it is necessary.
If you need a dynamic resizing functionality, it is better to look at the JS Charts Suite that provides JS controls that are rendered on the client side and can be resized dynamically. You can find more information on how to use JS Charts in the following example: How to use the dxChart in an ASP.NET WebForms application

Example Comments

Added By: Maxim Sidorenko at: 4/17/2013 1:38:33 PM    

Please, provide an example how to do it using MVC

Added By: Alex (DevExpress Support) at: 4/18/2013 1:42:09 PM    

Hi,

Please review my answer in the How to resize a chart according to the container actual size using MVC ticket and feel free to update the ticket if further assistance is necessary.

Added By: Tamer at: 6/30/2013 9:12:43 AM    

what if the Chart Control inside ASPxPanel and that panel take width =100%

what the way to make take the parent width ,but the parent take width as %


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>