☝️Small business or a startup? See if you qualify for our special offer.
+
All documentation

googlecharts.getNumberFormatPattern

googlecharts.getNumberFormatPattern(format: FormatObject): String

Converts Flexmonster's number format to a Google Charts format pattern. Use it to apply a number format to axes.

Learn more about applying Flexmonster number format to Google Charts in the Using Flexmonster number formatting in Google Charts section.

Parameters

Parameter/TypeDescription
format
FormatObject
The number format that is applied to measures in Flexmonster.

Returns

A Google Charts format pattern.

Example

Applying a number format for hAxis number labels:

hAxis: {
format: pivot.googlecharts.getNumberFormatPattern(rawData.meta.formats[0]),
// Other configs
}

Live example

See also