Guest User

Untitled

a guest
Oct 18th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. int index = Cchart.Series[0].Points.AddXY(row.Cells["ExD"].Value.ToString(),
  2. row.Cells[12].Value.ToString());
  3. for (int ip =0; ip < Cchart.Series[0].Points.Count; ip++)
  4. {
  5. DataPoint newPoint = Cchart.Series[0].Points[index];
  6. if (ip > 1)
  7. OH = Convert.ToDecimal(newPoint.YValues[0].ToString());
  8. POH = Convert.ToDecimal(newPoint.YValues[ip-1].ToString());
  9. if (OH-POH < 0)
  10. { newPoint.Color = Color.Red; }
  11. else { newPoint.Color = Color.Green; }
  12. }
Add Comment
Please, Sign In to add comment