Dear Sir
The Mark % shouldn't show 10000% when all the series item value = 0.
By the way. Which mark able to display percent of value and percent,value and total.
Below is example code.
Click the button1 to draw the chart first and click the button to show the Percent Mark.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TChart1.Series.Add(New Steema.TeeChart.Styles.Bar3D)
TChart1.Series(0).Add(0, "test", TChart1.Series(0).Color)
TChart1.Series(0).Add(0, "test2", TChart1.Series(0).Color)
TChart1.Series(0).Add(0, "test3", TChart1.Series(0).Color)
End Sub
Private Sub SetMarkStyle(ByVal MarkStyle As Integer)
Dim i As Integer
If MarkStyle = 0 Then
For i = 0 To TChart1.Series.Count - 1
TChart1.Series(i).Marks.Visible = True
TChart1.Series(i).Marks.Style = Steema.TeeChart.Styles.MarksStyles.LabelPercent
TChart1.Series(i).Marks.Pen.Color = TChart1.Series(i).Color
TChart1.Series(i).Marks.Symbol.Visible = True
Next
ElseIf MarkStyle = 1 Then
For i = 0 To TChart1.Series.Count - 1
TChart1.Series(i).Marks.Visible = True
TChart1.Series(i).Marks.Style = Steema.TeeChart.Styles.MarksStyles.Percent
TChart1.Series(i).Marks.Pen.Color = TChart1.Series(i).Color
TChart1.Series(i).Marks.Symbol.Visible = True
Next
ElseIf MarkStyle = 2 Then
For i = 0 To TChart1.Series.Count - 1
TChart1.Series(i).Marks.Visible = True
TChart1.Series(i).Marks.Style = Steema.TeeChart.Styles.MarksStyles.PercentTotal
TChart1.Series(i).Marks.Pen.Color = TChart1.Series(i).Color
TChart1.Series(i).Marks.Symbol.Visible = True
Next
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
SetMarkStyle(Button2.Tag)
Button2.Tag = Val(Button2.Tag) + 1
If Button2.Tag = 3 Then
Button2.Tag = 0
End If
End Sub
Eric
The Mark % showing 10000% when all the series item value = 0
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Eric,
I could reproduce the problem here and added it (TF02011917) to our defect list to be fixed for future releases.
I could reproduce the problem here and added it (TF02011917) to our defect list to be fixed for future releases.
I'm not sure what do you want to get here. Do you want that the series marks display all that information? If so, there's no preset style for this you'll have to customize marks yourself using series' GetMarkText event.By the way. Which mark able to display percent of value and percent,value and total.
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 |
Has this issue been resolved?
Is there any time frame that this bug will be fixed, or has it been resolved?
I am still getting this issue, using TeeChart Pro v2.
I am still getting this issue, using TeeChart Pro v2.
Hi VoviciDev,
This hasn't been fixed yet. At the moment we can't tell you when this will be fixed. We'd recommend you to be aware at this forum for new release announcements and what's being fixed/implemented on them.
Thanks in advance.
This hasn't been fixed yet. At the moment we can't tell you when this will be fixed. We'd recommend you to be aware at this forum for new release announcements and what's being fixed/implemented on them.
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |