when your chart is already initialized and you change the data provider ensure to update your chart by the validade methods, check those methods on http://docs.amchars.com/3/javascriptcharts/AmChart
If that doesn't help please provide a snippet of your code ;)