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?
TC V7 / MultiBar = mbSelfStack / wrong axis-labels
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |