Exemple #1
0
        private void chart1_PrePaint(object sender, System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs e)
        {
            var ax = chart1.ChartAreas[0].AxisX;
            var ay = chart1.ChartAreas[0].AxisY;

            for (int i = 0; i < TL.Count; i++)
            {
                float xc = (float)ax.ValueToPixelPosition(TL[i].Place.X);
                float yc = (float)ay.ValueToPixelPosition(TL[i].Place.Y);

                float rad = (float)TL[i].R;
                rad = (float)(ax.ValueToPixelPosition(0) - ax.ValueToPixelPosition(rad));

                //RectangleF r = new RectangleF(0, 0, rad * 2, rad * 2);

                RectangleF r = new RectangleF(xc - rad, yc - rad, rad * 2, rad * 2);
                e.ChartGraphics.Graphics.DrawEllipse(Pens.Black, r);
            }

            //e.ChartGraphics.Graphics.DrawEllipse(Pens.Black, new RectangleF(0, 0, 5, 5));
        }
Exemple #2
0
 private void chart1_PostPaint(object sender, System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs e)
 {
 }
Exemple #3
0
 public static void onPrePaintHisto(object sender, System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs e)
 {
     guiHandler.onPrePaintHisto(sender, e);
 }
Exemple #4
0
 private void onPrePaintHisto(object sender, System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs e)
 {
     Controller.onPrePaintHisto(sender, e);
 }