score:1

Looks like this is not what you think it is. You can try using arrow functions instead, these will help you to capture the right this:

onclick: () => {
  this.yAxis[0].update({
    type: 'linear'
  })
}

Related Query

More Query from same tag