DannE Posted September 6, 2007 Report Share Posted September 6, 2007 If my X-axis is a year field (getting data as Datetime), how do I specify the minumum year? I tried doing: cfxLine.AxisX.Min = 1985 But it shows the minimum year to be 1905. Any suggestions? TempGraph.txt Link to comment Share on other sites More sharing options...
Frank Posted September 6, 2007 Report Share Posted September 6, 2007 You need to specify the minimum datetime. That Link to comment Share on other sites More sharing options...
DannE Posted September 6, 2007 Author Report Share Posted September 6, 2007 The property Min is a double so it throws a compilation error. If I try to cast it using: cfxLine.AxisX.Min = Convert.ToDouble( new DateTime(1985,1,1)) - It says "invalid cast from datetime to double" Link to comment Share on other sites More sharing options...
Frank Posted September 6, 2007 Report Share Posted September 6, 2007 Sorry! I forgot one thing: cfxLine.AxisX.Min = new DateTime(1985,1,1).ToOADate(); Link to comment Share on other sites More sharing options...
DannE Posted September 6, 2007 Author Report Share Posted September 6, 2007 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.