We have updated Flexmonster Software License Agreement, effective as of September 30, 2025 (list of changes)
All documentation

googlecharts.getNumberFormat

googlecharts.getNumberFormat(format: FormatObject): Object

Converts Flexmonster's number format to a Google Chart format object.

To learn how the Flexmonster number format is applied to Google Charts, see 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 object.

Example

Applying a number format:

let formatter = new google.visualization.NumberFormat(pivot.googlecharts.getNumberFormat(rawData.meta.formats[0]));
formatter.format(data, 1);

Live example

See also