Page 1 of 1

Custom decimal symbol and digit grouping

Posted: Tue Sep 14, 2010 11:15 am
by 10546890
Hello!

Currently it does not seem to be possible to set following things for axes labels:
- Custom decimal symbol instead of . or , etc.
- Custom digit grouping instead of the default 3
- Custom digit grouping symbol instead of . or , etc.

So it is not possible to have for example decimal symbol Z and digit grouping symbol X and digit grouping of let's say 5, in which case one million would be shown as following (presuming 2 digits after decimal symbol):
10X00000Z00

If so, then I would like to request this capability to TeeChart. This is possible in other parts of our software, so our customers are asking why the charts do not use the same formatting.

Re: Custom decimal symbol and digit grouping

Posted: Wed Sep 15, 2010 2:08 pm
by yeray
Hi,

Please take a look at here to understand how the floats can be formatted in delphi.
In particular, I think that what you are trying to do can be done as follows:

Code: Select all

uses series;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;

  with Chart1.AddSeries(TPointSeries) do
  begin
    Add(500000);
    Add(1000000);
    Add(2000000);
  end;

  DecimalSeparator:='Z';
  Chart1.Axes.Left.AxisValuesFormat:='#X####0.00';
end;