Page 1 of 1

Labels on Custom Axis not shown.

Posted: Thu Jan 17, 2008 3:06 pm
by 13047253
Hi

I have setup a graph, that uses custom axes.
In each axis, I have added one series.

My problem is that the lables for my new axis is not being drawn.

I have looked through the maze of properties, and tried setting most of them to the values is think is rigth. But still no success.

A few of my tries looked close, but still not.

Code: Select all

            //Creates a new axis, with no grid lines
            Axis customAxis = new Axis(_chtChart.Chart);
            customAxis.SetMinMax(signal.YMin, signal.YMax);
            customAxis.AxisPen.Color = signal.Channel.DefaultColor;
            customAxis.TicksInner.Visible = false;
            customAxis.Ticks.Visible = false;
            customAxis.MinorTicks.Visible = false;
            customAxis.MinorGrid.Visible = false;
            customAxis.Grid.Visible = false;
            customAxis.Labels.Color = Color.White;
            customAxis.Labels.Visible = true;
            signal.Series.CustomVertAxis = customAxis;
- this diddent work for me, but the axis is otherwise shown correct.

I tried setting:

Code: Select all

signal.Series.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
but afterwords my CustomVertAxis is null.

Can anyone tell me what properties i need to set to make the lables visible?

Thanks for your time!

Posted: Thu Jan 17, 2008 3:10 pm
by narcis
Hi SorenBendtsen,

Have you tried setting chart's left margin?

Code: Select all

			tChart1.Panel.MarginLeft = 10;

Posted: Thu Jan 17, 2008 3:16 pm
by 13047253
I tried setting it - but it the labels does not show.

But a good guess :D

Posted: Thu Jan 17, 2008 3:20 pm
by narcis
Hi SorenBendtsen,
I tried setting it - but it the labels does not show.
Could you please send us a simple example project we can run "as-is" to reproduce the issue here and let us know the exact TeeChart version you are using? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
But a good guess
We had to try with the easiest solution first :wink:

Posted: Tue Jan 22, 2008 12:55 pm
by 13047253
Hi NarcĂ­s

The charting code is quite intangled with our soultion, so i could not upload a runable source.

But I found the solution.

Code: Select all

customAxis.Labels.Font.Color = Color.White;
The color of the labels were the same as the background (black).
Stupid is who stupid does :D

Thank you for taking your time on this problem, and for putting out a great product.

Posted: Tue Jan 22, 2008 3:04 pm
by narcis
Hi SorenBendtsen,

I'm glad to hear you find the solution to your problem.
The charting code is quite intangled with our soultion, so i could not upload a runable source.


In most cases we don't need your client's own code, just a simple example project using random data is enough for us provided this application reproduces the original issue.
Thank you for taking your time on this problem, and for putting out a great product.
Don't mention it! Thanks for your compliments too!