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. 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). 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 !!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.