Problem in axis title

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

Problem in axis title

Post by drillright40 » Mon Jul 28, 2008 9:02 am

Hi,

I am mapping tchart.Axes.Left axis and adding custom labels to it.
Problem:
1) The formatting which is applying on custom label, same are also get
applied on axis title. Title should be of differently formatted.

2) Title almost coming nearby or on the axis. It should be away from axis
labels.

Here is code:

Axis ZAxis = tchart.Axes.Left;
ZAxis.Title.Text = "Test";
ZAxis.Title.Font.Name = "Arial";
ZAxis.Title.Font.Size = 20;
ZAxis.Title.Font.Color = Color.Blue;
ZAxis.Title.TextAlign = StringAlignment.Center;

ZAxis.SetMinMax(0,100);
ZAxis.Labels.Items.Clear();

double start = 0.0;
double end = 100.0;

double majorGridPoint = 10.0;

int labelItemNo = 0;
while (start <= end)
{
ZAxis.Labels.Items.Add(start);
ZAxis.Labels.Items[labelItemNo].Font.Name = "ArialBlack";
ZAxis.Labels.Items[labelItemNo].Font.Size = 10;
ZAxis.Labels.Items[labelItemNo].Font.Color = Color.Green;
ZAxis.Labels.Items[labelItemNo].Font.Bold = true;
start = start + majorGridPoint;
labelItemNo++;
}

Note: Same code is working for tchart.Axes.Bottom and tchart.Axes.Depth

Thanks,
-Raed

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

Post by Narcís » Mon Jul 28, 2008 9:14 am

Hi Raed,

I'm afraid you have posted this twice. Please see my reply here.
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

drillright40
Newbie
Newbie
Posts: 57
Joined: Mon Nov 19, 2007 12:00 am

Post by drillright40 » Mon Jul 28, 2008 11:27 am

Hi,

I am using version 3.2.2868.26903.

As per your given answers and new version of dll, I tried.

But still problem exist.

Axis.Title.CustomSize is not working.

-Raed

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

Post by Narcís » Mon Jul 28, 2008 11:29 am

Hi Raed,

Latest version is build 3.5.3105.20150/1/2. Could you please check if it works fine at your end?
Axis.Title.CustomSize is not working.
It's not Axis.Title, it's Axis.Labels:

Code: Select all

         ZAxis.Labels.CustomSize = 30;
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