Page 1 of 1

Problem in axis title

Posted: Mon Jul 28, 2008 9:02 am
by 14047415
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

Posted: Mon Jul 28, 2008 9:14 am
by narcis
Hi Raed,

I'm afraid you have posted this twice. Please see my reply here.

Posted: Mon Jul 28, 2008 11:27 am
by 14047415
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

Posted: Mon Jul 28, 2008 11:29 am
by narcis
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;