We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

chart control label name font size and font color?

Thread ID:





77493 Nov 4,2008 12:19 AM Nov 20,2008 07:52 AM ASP.NET Web Forms (Classic) 2
Tags: Chart
Pavan Kumar
Asked On November 4, 2008 12:19 AM

hi can anyone tell me how to set the label names font size n color for x and y axis?

Pavan Kumar
Replied On November 4, 2008 04:56 AM

>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

Manohari [Syncfusion]
Replied On November 20, 2008 07:52 AM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.