highcharts Higcharts:如何删除工具提示容器的样式?

rqqzpn5f  于 2022-11-11  发布在  Highcharts
关注(0)|答案(1)|浏览(139)

我有一个following jsFiddle,我试图在图表左上角的一个静态位置移动(悬停点的)值。
以下是我的设置,与工具提示相关:

tooltip: {
  shared: true,
  borderRadius: 10,
  formatter: function () {
    return this.points.reduce(function (s, point) {
      let tooltipTxt = "";
      tooltipTxt += point.x + "<br/>";
      tooltipTxt += "Price: " + point.y + "<br/>";
      return tooltipTxt;
    }, this.x);
  },
  outside: true,
  borderWidth: 0,
  backgroundColor: 'transparent',
  shadow: false,
  style: {
    color: '#000'
  },
  useHTML: true,
  hideDelay: 3600000,
  positioner: function (labelWidth, labelHeight, point) {
    return {
        x: 30,
        y: 0
    };
 },
},

如何删除右上角的框样式,以及删除连接该框的线条,例如,我试着通过刮擦我想删除的线条来说明这一点(另外,工具提示框的反卷应该是透明的)

相关问题