Page 1 of 1

How to get all labels?

Posted: Fri Jul 04, 2008 1:53 am
by 14048132
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!

Posted: Fri Jul 04, 2008 8:02 am
by narcis
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.

Posted: Fri Jul 04, 2008 9:44 am
by 14048132
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?

Posted: Fri Jul 04, 2008 9:55 am
by narcis
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!