Click here to Skip to main content
14,766,145 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am doing one project in that i have to show force vs distance graph in zedgraph and data form database table force and distance for ID and show in graph

PointPairList list1 = new PointPairList();
DataTable DT = ObjDBmanager.SelectInDT("select * from Left_Bush");

for (int i = 0; i < DT.Rows.Count ; i++)
x = Convert.ToDouble(DT.Rows[i]["Left_Distance"]);
y = Convert.ToDouble(DT.Rows[i]["Left_Force"]);
list1.Add(x, y);

CurveItem myCurve = myPanel.AddCurve("Left Bush", list1, Color.Red, SymbolType.Diamond);
zedGraphControl1 .AxisChange();

i write above code its work if you debug the data one by one but you directly run then they cant show the graph ... so please help me ..

1 solution

You could expect faster response from thier site[^]. Try thier sourceforce page too[^]. Though they have posted an article[^] in Codeproject long time ago, they're not active here. So go to their site for quick response. Or wait for other answers here.

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