Marks Tip decimal places
Posted: Mon Apr 17, 2006 2:10 pm
Hi,
I am using the TeeChart7. By default the Teechart truncates the decimal places to three. Please find a small example below. If I set the Series(0).ValueFormat it is displaying the Marks tip according to the value format. I do not want to set the value format. Becuase my application supports the globalization. Is there a way to set only the decimal places. So I no need to handle the format issues. I have the same problem in web application also.
Private Sub Form_Load()
Dim X(1 To 5) As Integer
Dim Y(1 To 5) As Double
Dim i As Integer
For i = 1 To 5
X(i) = i
Next i
Y(1) = 0.3725
Y(2) = 0.6725
Y(3) = 0.9725
Y(4) = 1.3725
Y(5) = 1.6725
With TChart1
.AddSeries scLine
For i = 1 To 5
.Series(0).AddXY X(i), Y(i), "" & X(i), vbRed
Next i
.Tools.Add tcMarksTip
.Tools.Items(0).asMarksTip.Style = smsXY
End With
End Sub
Thanks & Regards,
Rama
I am using the TeeChart7. By default the Teechart truncates the decimal places to three. Please find a small example below. If I set the Series(0).ValueFormat it is displaying the Marks tip according to the value format. I do not want to set the value format. Becuase my application supports the globalization. Is there a way to set only the decimal places. So I no need to handle the format issues. I have the same problem in web application also.
Private Sub Form_Load()
Dim X(1 To 5) As Integer
Dim Y(1 To 5) As Double
Dim i As Integer
For i = 1 To 5
X(i) = i
Next i
Y(1) = 0.3725
Y(2) = 0.6725
Y(3) = 0.9725
Y(4) = 1.3725
Y(5) = 1.6725
With TChart1
.AddSeries scLine
For i = 1 To 5
.Series(0).AddXY X(i), Y(i), "" & X(i), vbRed
Next i
.Tools.Add tcMarksTip
.Tools.Items(0).asMarksTip.Style = smsXY
End With
End Sub
Thanks & Regards,
Rama