Page 1 of 1

Marks Tip decimal places

Posted: Mon Apr 17, 2006 2:10 pm
by 9083326
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

urgent...

Posted: Fri Apr 21, 2006 1:39 pm
by 9083326
Hi,

Is anybody can halp me?

I need to fix this problem in my code. Please let me know anybody having a solution for this.

Regards,
Rama

Posted: Sat Apr 22, 2006 5:47 pm
by Pep
Hi Rama,

there's not an option to change it directly, the only way is by setting a ValueFormat as you said or to use the OnMarkTipToolGetText event to customize the MarkTip text.