Lazarus

Programming => Graphics and Multimedia => TAChart => Topic started by: PaulRowntree on September 15, 2019, 11:54:54 pm

Title: Axis Label format spec
Post by: PaulRowntree on September 15, 2019, 11:54:54 pm
On my system (Win10, Laz1.8, win32) the default axis label format string is "%0:.9g".  What is the meaning of the full semicolon?

 
Title: Re: Axis Label format spec
Post by: wp on September 16, 2019, 12:31:49 am
The axis labels are determined by the ChartSource assigned to the Source and Style properties of the axis' Marks (when Source is empty an internal source is used). Depending on these settings various quanties can be displayed as axis labels which are created by using the Format() function and a given mask string. The number specified before the colon, therefore, is the index of the value in the parameter list passed to the Format() function.

See
- https://wiki.lazarus.freepascal.org/TAChart_documentation#Mark_labels
- https://www.freepascal.org/docs-html/rtl/sysutils/format.html
Title: Re: Axis Label format spec
Post by: PaulRowntree on September 16, 2019, 01:13:13 am
Thanks wp.  I was looking at this page, where the ':' is omitted.
https://wiki.freepascal.org/Format_function

Cheers!
TinyPortal © 2005-2018