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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Eric
Newbie
Newbie
Posts: 99
Joined: Wed Sep 14, 2005 4:00 am

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

Post by Eric » Tue Nov 21, 2006 3:07 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 21, 2006 10:20 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

VoviciDev
Newbie
Newbie
Posts: 1
Joined: Thu Apr 19, 2007 12:00 am
Contact:

Has this issue been resolved?

Post by VoviciDev » Tue Sep 18, 2007 10:41 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Sep 19, 2007 8:30 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply