How to update the dataprovider of Amcharts by Input field values and query results

     

I'm using serial type amchart and used query results in dataProvider. Now i need to change the dataProvider values according to the input values so i used another chart. But chart 2 not displayed anyone suggest me the solution to change the dataProvider values.