Hello,
I need the numbers on both the X and Y axis displayed in the European format 0,12 as instead of 0.12
Can anyone tell me how I go about doing this?
regards,
Jeff
internationalization
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello Jeff,
Have you tried using Delphi's DecimalSeparator variable?
Have you tried using Delphi's DecimalSeparator variable?
Code: Select all
DecimalSeparator:=',';
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jeff,
You can use DecimalSeparator in OnFormCreate event, for example. Another option would be setting axes labels format as told in Tutorial 4 - Axis Control. You'll find the tutorials at TeeChart's program group.
You can use DecimalSeparator in OnFormCreate event, for example. Another option would be setting axes labels format as told in Tutorial 4 - Axis Control. You'll find the tutorials at TeeChart's program group.
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 |
Hi Narcís,
Actually the DecimalSeperator works on the Left Axis but not with data on the BottomAxis. As far as I am aware properties for both axis are the same
Actually, the Left axis gets formatted ok i.e. with commas ',' and to three decimal places but no transformation is happening on the bottom axis at all. Numbers coming out like 0.1295423 I would have though AxisValuesFormat property would have solved this.
Any further ideas?
Thanks,
Jeff
Actually the DecimalSeperator works on the Left Axis but not with data on the BottomAxis. As far as I am aware properties for both axis are the same
Actually, the Left axis gets formatted ok i.e. with commas ',' and to three decimal places but no transformation is happening on the bottom axis at all. Numbers coming out like 0.1295423 I would have though AxisValuesFormat property would have solved this.
Any further ideas?
Thanks,
Jeff
Hi Jeff,
having as "." as Decimal separator and "," as Digit grouping in the Control Panel, using the following code I'm able to see all the axes labels formatted with comma between numbers :
having as "." as Decimal separator and "," as Digit grouping in the Control Panel, using the following code I'm able to see all the axes labels formatted with comma between numbers :
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
DecimalSeparator:=',';
with Chart1.Axes do
begin
Left.Increment := 0.001;
Left.AxisValuesFormat:='#.00';
Bottom.AxisValuesFormat:='#.0000';
Bottom.LabelStyle:=talValue;
end;
Series1.AddXY(1.1234,10.1121,'ss',clteecolor);
end;
Pep Jorge
http://support.steema.com
http://support.steema.com