Labels on Custom Axis not shown.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Labels on Custom Axis not shown.

Post by SorenBendtsen » Thu Jan 17, 2008 3:06 pm

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!

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

Post by Narcís » Thu Jan 17, 2008 3:10 pm

Hi SorenBendtsen,

Have you tried setting chart's left margin?

Code: Select all

			tChart1.Panel.MarginLeft = 10;
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

SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Post by SorenBendtsen » Thu Jan 17, 2008 3:16 pm

I tried setting it - but it the labels does not show.

But a good guess :D

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

Post by Narcís » Thu Jan 17, 2008 3:20 pm

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:
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

SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Post by SorenBendtsen » Tue Jan 22, 2008 12:55 pm

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.

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

Post by Narcís » Tue Jan 22, 2008 3:04 pm

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!
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