[Vuejs]-Vue Access Data from function in data

0👍

I managed to set the function on mount, which could possibly be substituted for a computed property.

this.chartOptions.yaxis.labels.formatter = function(value){
     return value + "$";
}

After that is set, the formatter function runs and also has access to the ‘this‘ property

Leave a comment