private void tChart4_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
        {
            if (posRepainted == 0)
            {
                posRepainted = 1;
                tChart4.Refresh();
            }
            //setup centre positions of titles on chart
            //relative to their text lengths
            tChart1.Refresh();
            tChart2.Refresh();
            tChart3.Refresh();
            posRepainted = 2;

            {
                int xs = tChart4.Axes.Bottom.CalcXPosValue(xVal);
                int ys;
                g.Brush.Visible = true;
                g.Brush.Solid   = true;
                for (int i = 0; i < tChart4.Series.Count; i++)
                {
                    if (tChart4.Series[i] is Steema.TeeChart.Styles.Custom)
                    {
                        ys            = tChart4.Series[i].GetVertAxis.CalcYPosValue(InterpolateLineSeries(tChart4.Series[i] as Steema.TeeChart.Styles.Custom, xVal));
                        g.Brush.Color = tChart4.Series[i].Color;
                        g.Ellipse(new Rectangle(xs - 4, ys - 4, 8, 8));
                    }
                }
            }
        }
예제 #2
0
 private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
 {
     g.Pen.Style     = System.Drawing.Drawing2D.DashStyle.Solid;
     g.Pen.Color     = Color.Blue;
     g.Brush.Visible = true;
     g.Brush.Color   = Color.Azure;
     g.Ellipse(50, 90, 250, 160, 0, hScrollBar2.Value);
 }
        void ChartAfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
        {
            if (currentIndex != -1)
            {
                double xCenter = LineChart.Chart.Series[0].CalcXPos(currentIndex);
                double yCenter = LineChart.Chart.Series[0].CalcYPos(currentIndex);

                g.Font.Size = g.Font.Size * 1.5;
                double offSet = 0;

                g.TextOut(xCenter - offSet, yCenter - (g.Font.Size * 4), " Value: " + LineChart.Chart.Series[0].YValues[currentIndex].ToString());

                Rectangle r = new Rectangle(xCenter - 25, yCenter - 25, 50, 50);

                g.Brush     = pBrush;
                g.Pen.Width = 4;
                g.Ellipse(r);
            }
        }
 private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
 {
     if (checkBox1.Checked)
     {
         int xs = tChart1.Axes.Bottom.CalcXPosValue(xval);
         int ys;
         g.Brush.Visible = true;
         g.Brush.Solid   = true;
         for (int i = 0; i < tChart1.Series.Count; i++)
         {
             if (tChart1.Series[i] is TeeChart.Styles.Custom)
             {
                 ys            = tChart1.Series[i].GetVertAxis.CalcYPosValue(InterpolateLineSeries(tChart1.Series[i] as Steema.TeeChart.Styles.Custom, xval));
                 g.Brush.Color = tChart1.Series[i].Color;
                 g.Ellipse(new Rectangle(xs - 4, ys - 4, 8, 8));
             }
         }
     }
 }