示例#1
0
 private void Form1_Load(object sender, System.EventArgs e)
 {
     ChartAppearance.ApplyChartStyles(this.chartControl1);
     InitializeChartData();
     this.comboBox1.SelectedIndex = 0;
     this.chartControl1.Dock      = DockStyle.Fill;
 }
示例#2
0
 private void Form1_Load(object sender, System.EventArgs e)
 {
     ChartAppearance.ApplyChartStyles(this.chartControl1);
     InitializeChartData();
     this.comboBox1.SelectedIndex = 0;
     this.chartControl1.Anchor    = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                           | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
 }
示例#3
0
        private void comboBox3_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            this.chartControl1.Series.Clear();
            InitializeChartData();

            ChartAppearance.ApplyChartStyles(this.chartControl1);
            this.chartControl1.Series[0].ConfigItems.PieItem.LabelStyle = (ChartAccumulationLabelStyle)Enum.Parse(typeof(ChartAccumulationLabelStyle), this.comboBox2.SelectedItem.ToString(), true);
            this.chartControl1.Series[0].Style.Callout.Position         = (LabelPosition)Enum.Parse(typeof(LabelPosition), this.comboBox3.SelectedItem.ToString(), true);
            this.chartControl1.Series[0].Type = (ChartSeriesType)Enum.Parse(typeof(ChartSeriesType), this.comboBox1.SelectedItem.ToString(), true);
            this.chartControl1.Refresh();
        }