How to get all labels?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Chris.CHWU
Newbie
Newbie
Posts: 57
Joined: Wed Jan 30, 2008 12:00 am

How to get all labels?

Post by Chris.CHWU » Fri Jul 04, 2008 1:53 am

Hi,

When I add two series,

Code: Select all

        Dim series As New Steema.TeeChart.Styles.Line(TChart1.Chart)
        Dim series2 As New Steema.TeeChart.Styles.Line(TChart1.Chart)
        series.Add(1, 1, "A")
        series.Add(3, 3, "C")
        series.Add(5, 5, "E")
        series.Add(7, 7, "G")
        series.Add(9, 9, "I")
        series.Add(11, 11, "K")
        series2.Add(2, 1, "B")
        series2.Add(4, 2, "D")
        series2.Add(6, 3, "F")
        series2.Add(8, 4, "H")
        series2.Add(10, 5, "J")
The bottom axis labels : A C E G I K

If exchanges two lines of orders

Code: Select all

        Dim series2 As New Steema.TeeChart.Styles.Line(TChart1.Chart)
        Dim series As New Steema.TeeChart.Styles.Line(TChart1.Chart)
The bottom axis labels : B D F H J

How to get all labels(A B C D ... K) ?

Thanks!

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

Post by Narcís » Fri Jul 04, 2008 8:02 am

Hi Chris,

In that case I'm afraid the only solution is using custom labels as shown in the All Features\Welcome!\Axes\Labels\Custom Labels example at the features demo, available at TeeChart's program group.
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

Chris.CHWU
Newbie
Newbie
Posts: 57
Joined: Wed Jan 30, 2008 12:00 am

Post by Chris.CHWU » Fri Jul 04, 2008 9:44 am

Thanks for your reply.

I had tried out the method, but I have more than 200's labels.

When executed, the labels overlap.

Have any method to solved the problem?

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

Post by Narcís » Fri Jul 04, 2008 9:55 am

Hi Chris,

I strongly recommend you to read this thread. It's a pretty long thread (several pages) but here are discussed several interesting options.

Hope this helps!
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