score:1

Accepted answer

i think that you only need to assign the reference of the vue instance to a variable and then use it in formatter function. remember also to add a reference to the computed property.

demo: https://codesandbox.io/s/highcharts-vue-test-forked-c7pvw?file=/src/components/stockvue.vue

score:0

assign the reference of the vue instance to a variable that worked for me.

export default {
  name: "stockvue",
  method: {
    exporttooltipdata(data){
      console.log(data)
    }
  },
  computed: {
    stockoptions() {
      const exportfn = this.exporttooltipdata;
      return {
        ...,
        tooltip: {
          shared: true,
          formatter(){
            exportfn(this);
            retuen `
              open: ${this.points[0].point.open}
            `
          }
        }
      }
    }
  }
}

Related Query

More Query from same tag