예제 #1
0
 private void chartControl1_ChartFormatAxisLabel(object sender, Syncfusion.Windows.Forms.Chart.ChartFormatAxisLabelEventArgs e)
 {
     if (this.checkBox2.Checked)
     {
         e.Label   = e.Value.ToString(".00");
         e.Handled = true;
     }
 }
예제 #2
0
        private void chartControl1_ChartFormatAxisLabel(object sender, Syncfusion.Windows.Forms.Chart.ChartFormatAxisLabelEventArgs e)
        {
            int index = (int)e.Value + 1;

            if (e.AxisOrientation == ChartOrientation.Horizontal)
            {
                if (CustomText_ChartFormat)
                {
                    string CustomText = this.textBox1.Text;
                    arr = CustomText.Split(new char[] { '\n' });
                    if (index < arr.Length)
                    {
                        e.Label = arr[index].ToString();
                    }
                }
            }
            e.Handled = true;
        }