Page 1 of 1

TC V7 / MultiBar = mbSelfStack / wrong axis-labels

Posted: Fri Aug 03, 2007 8:14 am
by 9339224
I have the same problem described in <http://www.teechart.net/support/viewtop ... bselfstack>. But the solution (using ValueIndex in OnGetAxisLabel) does not work, because ValueIndex is always -1!

How can I display the correct label?

Posted: Fri Aug 03, 2007 8:33 am
by narcis
Hi rd,

Thanks for reporting, you are right. I've added this defect to our bug list (TV52012379) to be fixed for future releases.

Unfortunately there's no workaround I can think of for now.

Posted: Fri Aug 03, 2007 8:55 am
by 9339224
Hi Narcis,

That are bad news!
Or can I buy the next release next week?

Posted: Fri Aug 03, 2007 8:59 am
by narcis
Hi rd,

Yes, but I've checked that this also happens with v8. I've added this issue as a high priority item to be fixed ASAP.

Posted: Fri Aug 03, 2007 10:45 am
by 9339224
Hi Narcis,

"ASAP" sounds good.
I used this kind of chart in a program that is in use by a customer.
Could you calculate how long it takes to do the fix?

Posted: Fri Aug 03, 2007 11:48 am
by narcis
Hi rd,

A colleague pointed me out that this only works when labels style is set to talText. So to have it working you need to do like this:

Code: Select all

Private Sub Form_Load()
    TChart1.Series(0).FillSampleValues 10
    TChart1.Axis.Bottom.Labels.Style = talText
End Sub

Private Sub TChart1_OnGetAxisLabel(ByVal Axis As Long, ByVal SeriesIndex As Long, ByVal ValueIndex As Long, LabelText As String)
    If Axis = 3 Then
        If ValueIndex = 0 Then
            LabelText = "C"
        Else
            LabelText = "D"
        End If
    End If
End Sub