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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

chart control label name font size and font color?

Thread ID:





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

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 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

Manohari [Syncfusion]
Replied On 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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon