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-08-01 Pass new data file name when reloading data with JavaScript

Today I updated all charts with some small but very important feature. Now, when you trigger data (or settings) reload with JavaScript, you can pass new file name to flash chart. Indeed this can be the same name with some different parameters passed.

Why this is important? Image, you have  a web page with a chart and with some forms where user can select something and click "generate chart" button. Before this function you had to reload the page or feed the chart with setData() function, which is not always comfortable.  Now, when user clicks on "generate chart" button you can call reload data function and pass parameters selected by user. Generally this will look like this:

reloadData("data_generator_file.php?param1=10&param2=20")

When you data generator will return new data, generated according to parameters passed.


amCharts for WPF RSS feed Subscribe to our RSS feed to be notified about new releases and updates.
<< Previous | 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 ;)