SetYLabelType — Set formatting type for Y tick and data labels
$plot->SetYLabelType($ylt
)
SetYLabelType
sets the formatting type for Y tick
and data labels.
(Y data labels are only available with bar charts.)
By default, there is no special formatting, so the labels are
output as-is. Other choices are 'data' and 'time'.
'data' formatting formats the labels as floating point numbers, with thousands-separating commas, and with precision set by SetPrecisionY.
'time' formatting formats the labels as date/time values, using a format specifier set by SetYTimeFormat.
The default formatting mode is to do no special formatting of the labels. Strings will be output as-is, and numbers will be output using PHP's default formatting.
A side effect of SetPrecisionY is to call this function SetYLabelType and set the formatting mode to 'data'.