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

            {
                double xs = tChart4.Axes.Bottom.CalcXPosValue(xVal);
                double 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.Store.Styles.Custom)
                    {
                        ys            = tChart4.Series[i].GetVertAxis.CalcYPosValue(InterpolateLineSeries(tChart4.Series[i] as Steema.TeeChart.Store.Styles.Custom, xVal));
                        g.Brush.Color = tChart4.Series[i].Color;
                        g.Ellipse(new Rect(xs - 4, ys - 4, 8, 8));
                    }
                }
            }
        }
        private void Pie_BeforeDrawValues(object sender, Steema.TeeChart.Store.Drawing.Graphics3D g)
        {
            double width  = g.ChartXCenter * 2;
            double height = g.ChartYCenter * 2;

            Rect rect = Utils.FromLTRB(buffer, buffer, width - buffer, (height / 2) - (buffer / 2));

            tChart3.Chart.ChartRect = rect;
        }