PK
Pavan Kumar
November 4, 2008 09:56 AM UTC
>hi can anyone tell me how to set the label names font size n color for x and y axis?
hello can anybody please tell me how to set the font size for the label on the x axis
MA
Manohari
Syncfusion Team
November 20, 2008 12:52 PM UTC
Hi Pavan Kumar,
We regret very much for the delayed response. It is possible to set font and color to the ChartAxis labels using the ChartAxis.Font and ForeColor properties respectively. Please refer to the sample code snippets below.
Sample code:
this.chartControl1.PrimaryXAxis.Font = new Font("Arial",(float)float.Parse(this.comboBox1.SelectedItem.ToString())); // To set Font to X axis.
this.chartControl1.PrimaryXAxis.ForeColor = Color.Blue; // To set FontColor to Y axis.
Please let us know if this meets your requirements. Thanks for your patience.
Regards,
Manohari.R