Page 1 of 1

The Mark % showing 10000% when all the series item value = 0

Posted: Tue Nov 21, 2006 3:07 am
by 9638303
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

Posted: Tue Nov 21, 2006 10:20 am
by narcis
Hi Eric,

I could reproduce the problem here and added it (TF02011917) to our defect list to be fixed for future releases.
By the way. Which mark able to display percent of value and percent,value and total.
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.

Has this issue been resolved?

Posted: Tue Sep 18, 2007 10:41 pm
by 9644886
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.

Posted: Wed Sep 19, 2007 8:30 am
by yeray
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.