示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     string[] names = new string[] { "Липецкая", "Тульская", "Тамбовская", "Воронежская", "Белгородская", "Брянская" };
     double[] x     = new double[] { 11.5, 20.1, 34.2, 22.1, 13.4, 29.4 };
     double[] y     = new double[] { 6.9, 11.1, 21.3, 20.5, 9.7, 18.2 };
     chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.SemiTransparent;
     chart1.Titles.Add("Data");
     for (int i = 0; i < names.Length; i++)
     {
         chart1.Series.Add(names[i]);
         chart1.Series[names[i]].ChartType  = Graph.SeriesChartType.Point;
         chart1.Series[names[i]].MarkerSize = 10;
         chart1.Series[names[i]].Points.AddXY(x[i], y[i]);
     }
     AGNESClass.Count();
     Console.WriteLine();
 }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     AGNESClass obj = new AGNESClass();
 }