Page 1 of 1

Z Axis Title Color does not change

Posted: Tue Nov 11, 2008 9:05 am
by 14047415
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.

Posted: Tue Nov 11, 2008 9:27 am
by narcis
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;
		}