Click here to Skip to main content
16,020,345 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hey,
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 ..
Posted

1 solution

You could expect faster response from thier site http://zedgraph.org/[^]. Try thier sourceforce page too http://sourceforge.net/projects/zedgraph/[^]. 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.
 
Share this answer
 

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