private void SetupAnnotations() { int tmp = area1.CalcXPos(area1.Count - 2) + ((area1.CalcXPos(area1.Count - 1) - area1.CalcXPos(area1.Count - 2)) / 2); Rectangle chartRect = tChart1.Chart.ChartRect; if (annotation1 == null) { annotation1 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); } annotation1.Text = "Total = " + area1.MaxXValue().ToString() + " consoles sold"; annotation1.Shape.Font.Bold = true; annotation1.Shape.Transparent = true; annotation1.Shape.CustomPosition = true; annotation1.Shape.Left = tmp - 80; annotation1.Shape.Top = chartRect.Top + 20; if (annotation2 == null) { annotation2 = new Steema.TeeChart.Tools.Annotation(tChart1.Chart); } annotation2.Text = "Average price " + average.MaxYValue().ToString() + " €"; annotation2.Shape.Font.Bold = true; annotation2.Shape.Font.Color = Color.Red; annotation2.Shape.Transparent = true; annotation2.Shape.CustomPosition = true; annotation2.Shape.Left = tmp; annotation2.Shape.Top = average.CalcYPos(0) - 15; }