Click here to Skip to main content
15,893,923 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have to bind xml file to plot a graph using asp.net. I have used flowing code.

protected void btnBind_Click(object sender, EventArgs e)
{

string dataPath = MapPath(".") + "\\expense.xml";

DataSet ds = new DataSet();
ds.ReadXml(dataPath);
DataTable dt = ds.Tables[0];
DataView dv = new DataView(dt);
ChartExpense.Series[0].Points.DataBindXY(dv, "month", dv, "expense");
}

Now I want to plot the graph in some time interval using counter i.e. after every 5 secs the next value from xml file will be plot on graph. Please guide me through this.
Posted
Comments
[no name] 22-May-14 4:40am    
See this page:
http://msdn.microsoft.com/en-us/library/vstudio/bb398865(v=vs.100).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900