highcharts-extra-label-format
v0.0.4
Published
This package extends Highcharts by adding more format string options.
Downloads
524
Readme
highcharts-extra-label-format
This package adds on more format string options available to Highcharts.
Duration Format Strings
Format: %D<durationUnit><modifier>
Duration Units:
Refers to the component of a duration that is desired.
Available Options:
s
: secondm
: minuteh
: hourd
: day
Modifiers:
Depends on usage of format string.
t
: Total rounded to the nearest integer. Used for displaying a single unit of duration.
Example:
p
: The specified component of the duration with range depending on specified unit. Used when combining duration format strings for non-leading units.c
: The specified component of the duration without range limitation. Used when combining duration format strings for leading unit.
Example:
Note how the p
modifier is used for the number of seconds to keep it under 60 seconds since the extra seconds would be captured by the minutes format string in this example.