Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int index = Cchart.Series[0].Points.AddXY(row.Cells["ExD"].Value.ToString(),
- row.Cells[12].Value.ToString());
- for (int ip =0; ip < Cchart.Series[0].Points.Count; ip++)
- {
- DataPoint newPoint = Cchart.Series[0].Points[index];
- if (ip > 1)
- OH = Convert.ToDecimal(newPoint.YValues[0].ToString());
- POH = Convert.ToDecimal(newPoint.YValues[ip-1].ToString());
- if (OH-POH < 0)
- { newPoint.Color = Color.Red; }
- else { newPoint.Color = Color.Green; }
- }
Add Comment
Please, Sign In to add comment