JavaScript charts Flex charts WPF & Silverlight charts Flash maps Flex maps
amCharts the best javascript charts *
Home Home
Products Products
Download Download
Buy Buy
FAQ FAQ
Documentation Documentation
Support forum Support forum

2007-03-12 Resizing chart when window is resized

To resize charts together with the window, you need to set height or width of your flash movie in percents. This is done in this line of html:

var so = new SWFObject("amline/amline.swf", "amline", "100%", "400", "8", "#FFFFFF");

This line says that width of your flash width will be equal to 100% of your window (table, div..) and height will be equal to 400 px. if you want your chart to resize together with a window, you have to set:

<redraw>true</redraw>

Note that if your legend, labels, and other objects have fixed X, Y and Width properties, they will not be changed.


amCharts for WPF RSS feed Subscribe to our RSS feed to be notified about new releases and updates.
| Next >>
© amCharts | About us | Contact and feedback: info@amcharts.com Subscribe to amcharts news feed by e-mail or RSS reader Follow amCharts on Twitter * many people say so ;)