Asp chart Refresh method

Dec 28 2016 2:11 AM
I have a ASP:Chart control .I want to set it as a dynamic chart.Actually in my Code i refresh the Whole chart for every time .I want to refresh the series alone .Suggest me some Ideas.
  1. private void  chartload()  
  2.        {  
  3.         DataTable myTable = new DataTable();  
  4.         DataView dv = new DataView(myTable);  
  5.          dv.RowFilter = (("Name='A'"));  
  6.              Chart1.Series[0].LegendText = ddllicense.SelectedItem.Text;  
  7.                  Chart1.Series[0].BorderWidth = 2;  
  8.                  Chart1.Legends["Legend1"].Position.Auto = true;  
  9.                     Chart1.DataSource = dv;  
  10.                            Chart1.DataBind();  
  11.                             
  12.                        }  
  13.   
  14.                    
  15.   
  16. protected void Timer1_Tick(object sender, EventArgs e)  
  17.        {  
  18.            chartload();  
  19.        }  
 

Answers (4)