score:-1

Try to wrap the function in quotes like in this example:

'labels': {
            'formatter': "function () {\
                return this.value + '°';\
            }"
        },

Related Query

More Query from same tag