Marks Tip decimal places

TeeChart for ActiveX, COM and ASP
Post Reply
rama
Newbie
Newbie
Posts: 33
Joined: Thu Jul 29, 2004 4:00 am

Marks Tip decimal places

Post by rama » 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

rama
Newbie
Newbie
Posts: 33
Joined: Thu Jul 29, 2004 4:00 am

urgent...

Post by rama » Fri Apr 21, 2006 1:39 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Sat Apr 22, 2006 5:47 pm

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.

Post Reply