Z Axis Title Color does not change

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
drillright40
Newbie
Newbie
Posts: 57
Joined: Mon Nov 19, 2007 12:00 am

Z Axis Title Color does not change

Post by drillright40 » Tue Nov 11, 2008 9:05 am

Hi,

I am using Red Color for X, Y and Z Axis Title and Blue Color for their respective Scale values.
But, the color for Z Axis (Left Axis) title gets painted with same color as of Axis Scale Color. For X and Y Axis it is working properly.
I have uploaded image "Z Axis Title Color.JPG" for reference.

Code for the same is-
For Scale labels-
XAxis.Labels.Items[0].Font.Color = Color.Blue;
YAxis.Labels.Items[0].Font.Color = Color.Blue;
ZAxis.Labels.Items[0].Font.Color = Color.Blue;

For Title-
XAxis.Title.Font.Color = Color.Red;
YAxis.Title.Font.Color = Color.Red;
ZAxis.Title.Font.Color = Color.Red;

Please Help. Thanks in Advance.

Regards,
Sanyog.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 11, 2008 9:27 am

Hi Sanyog,

This works fine for me here using latest v3 release available at the client area and this code:

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			Steema.TeeChart.Styles.Surface surface1 = new Steema.TeeChart.Styles.Surface(tChart1.Chart);
			
			surface1.FillSampleValues();

			tChart1.Axes.Depth.Visible = true;

			tChart1.Axes.Left.Title.Text = "Y axis title";
			tChart1.Axes.Bottom.Title.Text = "X axis title";
			tChart1.Axes.Depth.Title.Text = "Z axis title";

			tChart1.Axes.Left.Title.Font.Color = Color.Red;
			tChart1.Axes.Bottom.Title.Font.Color = Color.Red;
			tChart1.Axes.Depth.Title.Font.Color = Color.Red;
		}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply