Skip to content

Asp chart Refresh method

Dinesh Santhalingam

Asked Dec 27, 2016, 9:11 PM EST4 answers
Share
LinkedInX
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.        }  

4 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi, Put Chart Control in update panel and button should be out side of update panel and write trigger for update panel.
    0
  • 0
    Please Explain once again..I can't get .@
    kalyan potharaju
    0
  • 0
    In .aspx file(design part) create one update panel. Inside of it put your asp:chart control. for update panel we have triggers. Asynchronous Trigger put your button for asynchronous PostBack. Try it once... I think it will work..  
    0
  • 0
    If do like that the whole chart only refresh.But my question is different I want to refresh the Chart series .@ 
    kalyan potharaju
    0