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 Quote 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 Quote 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" Quote 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(); Quote Link to comment Share on other sites More sharing options...
DannE Posted September 6, 2007 Author Report Share Posted September 6, 2007 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.