private void InitializeChart() { tChart1.Header.Text = "Scroll Pager Tool"; tChart1.Series.Add(series = new FastLine()); series.FillSampleValues(1000); tChart1.Tools.Add(tool = new ScrollPager()); tChart1.Tools.Add(point = new NearestPoint()); tChart1.Tools.Add(annotate = new Annotation()); point.Brush.Color = tool.PointerHighlightColor; point.DrawLine = false; point.Size = 6; point.Direction = NearestPointDirection.Horizontal; point.Series = series; point.Change += new EventHandler(point_Change); annotate.Position = AnnotationPositions.RightTop; annotate.Text = "YValue:"; annotate.Shape.Shadow.Visible = false; annotate.Shape.Font.Color = tChart1.Header.Font.Color; annotate.Shape.Color = tool.PointerHighlightColor; annotate.Shape.Pen.Visible = false; annotate.TextAlign = StringAlignment.Center; Theme.ApplyChartTheme(typeof(FlatTheme), tool.SubChartTChart.Chart); }