askum..ade sape2 tau pasal zedgraph tak? sy nak buat graph dgn 4 multiple line dalam satu graph dng 2 y-axis. tapi sy tak tau mcm mana nak generate line yg lain. bleh buat satu line jer.huhu..tolong laa..
sy guna connection ker oracle mcm biasa.
OracleConnection conn100 = new OracleConnection();
conn100.ConnectionString = " data source =; user id =; password =";
OracleCommand cmd100 = new OracleCommand();
cmd100.CommandText =
cmd100.Parameters.Add("arbpl_name",ddlworkcenter.SelectedItem.ToStrin());
cmd100.Connection = conn100;
conn100.Open();
OracleDataReader dr100 = cmd100.ExecuteReader();
string x1, y1;
int breakpoints = 0;
while (dr100.Read())
{
x1 = dr100["hours"].ToString();
y1 = dr100["wip_inprogress"].ToString();
if (breakpoints == 0)
{
if (x1 != "" && y1 != "")
{
list1.Add(Convert.ToDouble(x1), Convert.ToDouble(y1));
}
else
{
breakpoints++;
}
}
else
{
list2.Add(Convert.ToDouble(x1), Convert.ToDouble(y1));
}
}
conn100.Close();
tapi ini untuk satu line saje. bila sy nak buat untuk line yg lain guna coding yg sama .. kuar error...camner ek? tolonggg laaa sape.
kalo ade idea emel sy : inapaisey@yahoo.com
sy guna connection ker oracle mcm biasa.
OracleConnection conn100 = new OracleConnection();
conn100.ConnectionString = " data source =; user id =; password =";
OracleCommand cmd100 = new OracleCommand();
cmd100.CommandText =
cmd100.Parameters.Add("arbpl_name",ddlworkcenter.SelectedItem.ToStrin());
cmd100.Connection = conn100;
conn100.Open();
OracleDataReader dr100 = cmd100.ExecuteReader();
string x1, y1;
int breakpoints = 0;
while (dr100.Read())
{
x1 = dr100["hours"].ToString();
y1 = dr100["wip_inprogress"].ToString();
if (breakpoints == 0)
{
if (x1 != "" && y1 != "")
{
list1.Add(Convert.ToDouble(x1), Convert.ToDouble(y1));
}
else
{
breakpoints++;
}
}
else
{
list2.Add(Convert.ToDouble(x1), Convert.ToDouble(y1));
}
}
conn100.Close();
tapi ini untuk satu line saje. bila sy nak buat untuk line yg lain guna coding yg sama .. kuar error...camner ek? tolonggg laaa sape.
kalo ade idea emel sy : inapaisey@yahoo.com