User Guide
Reference
Examples
Download
Github

Formatters

The <format> setting controls how values are formatted for display. Here is the list of valid values:

List of <format> values

fixed

The fixed label formatter will format values as decimal floating point numbers with a fixed precision of N decimal places to the right of the decimal point. If no parameter N is given, it defaults to one (1).

fixed
fixed(<N>)

Example: charts-reference/format_fixed:


scientific

The scientific formatter will format values using scientific notation. If a precision N is provided, the significand will be formatted to N decimal places to the right of the decimal point. If no parameter N is given, it defaults to one (1).

scientific
scientific(<N>)

Example: charts-reference/format_scientific:


datetime

The datetime formatter formats Unix timestamps (given as integers) as human readable date strings. The optional <fmt> format string uses the standard strftime format specifiers and syntax.

datetime
datetime(<fmt>)

Example: charts-reference/format_datetime:


base

The base formatter will format values using an arbitrary base B and an optional precision N.

base(<B> <N>)

Example: charts-reference/format_base:


integer

The integer formatter will format values as integers.

integer

Example: charts-reference/format_integer:

Edit this page on GitHub