Is it possible to hilight the current date on a gantt chart by placing a vertical bar there? It seems like that would be a common feature, but I can't seem to find a way to reliably do it. Thanks
This can only be done by using a custom layer or by handling FillSceneGraph event (if you use version 7.3)
void chart_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e){ IAdvanceAxis xAxis = (IAdvanceAxis)e.Grid["X"]; IAdvanceAxis yAxis = (IAdvanceAxis)e.Grid["Y"]; int x = Convert.ToInt32(xAxis.Map(DateTime.Now)); int y1 = Convert.ToInt32(yAxis.MapMinimum); int y2 = Convert.ToInt32(yAxis.MapMaximum); Line l = new Line(); l.p1 = new Point(x, y1); l.p2 = new Point(x, y2); l.PE.Fill = Color.Red; l.PE.StrokeWidth = 3;
e.SceneGraph.Add(l);}
which assemblies must be included in the source file? VS2005, Vol 3 CLR2, C#.
using ___?