pre Posted March 28, 2008 Report Share Posted March 28, 2008 Hello,I am trying to draw constant vertical lines on a Gantt chart, which has a DateTime X-Axis. I have set the ConstantLine.Value to DateTime .Now.ToOADate(); ConstantLine fBS= chart.ConstantLines[0]; fBS.Value = DateTime.Now.ToOADate();fBS.Axis = AxisItem.X; fBS.Color = Color.Red;fBS.Text = "test"; fBS.ShowLine = true; It does'nt seem to be working as I am not able to see that on my Gantt chart. Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
Frank Posted March 28, 2008 Report Share Posted March 28, 2008 A vertical constant line in a Gantt chart must be attached to the Y-Axis (at the bottom of the chart). Quote Link to comment Share on other sites More sharing options...
pre Posted March 30, 2008 Author Report Share Posted March 30, 2008 Thanks a lot...It works... i was of the idea, that since we are plotting an X value...the axis must be X....Thanks again !!!! 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.