☝️Small business or a startup? See if you qualify for our special offer.
+
All documentation
  • API Reference for older versions
  • 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