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.
Z Axis Title Color does not change
-
- Newbie
- Posts: 57
- Joined: Mon Nov 19, 2007 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Sanyog,
This works fine for me here using latest v3 release available at the client area and this code:
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 |
Instructions - How to post in this forum |