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)); }
private void chart1_PostPaint(object sender, System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs e) { }
public static void onPrePaintHisto(object sender, System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs e) { guiHandler.onPrePaintHisto(sender, e); }
private void onPrePaintHisto(object sender, System.Windows.Forms.DataVisualization.Charting.ChartPaintEventArgs e) { Controller.onPrePaintHisto(sender, e); }