更改 Highcharts Treemap 上后退按钮的文本?

Change the text of the back button on Highcharts Treemap?

我想更改 Highcharts Treemap 的后退/向上钻取按钮的文本。该按钮在用户单击地图向下钻取一级后出现。

默认显示“◁ 返回”,我想改一下

我尝试了很多不同的方法,如下所示:

chart: {
  drilldown: {
    drillUpButton: {
      text: 'asdsad'
    }
  }
},

  Highcharts.setOptions({
lang: {
  thousandsSep: ',',
  drillUpText: 'asdasd',
  accessibility: {
    drillUpButton: 'terst'
  }
}})

不幸的是,其中 none 个有效。

感谢您的帮助。

树形图系列不使用 drilldown 模块,它已经为 drilldown 实现了自己的逻辑,并且可以在系列配置中定义钻取按钮文本。

series: [{
  type: 'treemap',
  layoutAlgorithm: 'squarified',
  allowDrillToNode: true,
  drillUpButton: {
    text: '<< test button'
  },
  data: points
}],

演示:https://jsfiddle.net/BlackLabel/nyjtufL7/