Is there some way of setting the axis to display numbers that use a different thousands separator and a different fraction separator?
I looked at ValueFormat, but there is very limited documentation on that, and what I have seen doesn't seem to show that it can be done.
I'm using TeeChart 7.03AX
Sanks
International numbers
Hello,
yes, you should use the ValueFormat property to specify the desired format :
TChart1.Axis.Left.Labels.ValueFormat = "###x###x##"
What are you trying to accomplish ?
yes, you should use the ValueFormat property to specify the desired format :
TChart1.Axis.Left.Labels.ValueFormat = "###x###x##"
What are you trying to accomplish ?
Pep Jorge
http://support.steema.com
http://support.steema.com
Hello,
I'm not sure what kink of format you're trying to show.
By default Teechart gives the decimal and thousand format defined into the regional settings. As this depends on each machine, you have the ability to check the format used with the following code :
TChart1.Environment.DecimalSeparator
allowing to know the Valueformat you have to set in each case.
I'm not sure what kink of format you're trying to show.
By default Teechart gives the decimal and thousand format defined into the regional settings. As this depends on each machine, you have the ability to check the format used with the following code :
TChart1.Environment.DecimalSeparator
allowing to know the Valueformat you have to set in each case.
Pep Jorge
http://support.steema.com
http://support.steema.com
Yeah, well, I haven't tried to change regional settings to see if that works. But even if it did, I cannot change them due to a bug in some language which would make the CPU go crazy.Pep wrote:Hello,
I'm not sure what kink of format you're trying to show.
By default Teechart gives the decimal and thousand format defined into the regional settings. As this depends on each machine, you have the ability to check the format used with the following code :
TChart1.Environment.DecimalSeparator
allowing to know the Valueformat you have to set in each case.
Is there a way of changing either of them manually?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Vivo,
Yes, you should do something like this:
Yes, you should do something like this:
Code: Select all
Private Sub Form_Load()
TChart1.Series(0).FillSampleValues (5)
TChart1.Axis.Bottom.Labels.ValueFormat = "###,##0.00"
End Sub
Private Sub TChart1_OnGetAxisLabel(ByVal Axis As Long, ByVal SeriesIndex As Long, ByVal ValueIndex As Long, LabelText As String)
If TChart1.Environment.DecimalSeparator = "," Then
LabelText = Replace(LabelText, ",", ".")
End If
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |