I am trying to have a Range of 14 days as my X Axis for my Chart Control. The AddRange() only takes doubles, so is there a different method that I can use to get a Range from 13 days ago all the way up to and including Today? If anyone can help that would be great.
Thank you,
Chris
2 Answers, 1 is accepted
0
Accepted
Missing User
answered on 14 Sep 2011, 01:20 PM
Hi Chris,
DataPoint.XValue is of type double. Therefore, the DateTime values have to be converted to OLE Automation dates first, by the DateTime.ToOADate() method. For example: