默认是跟随鼠标的位置

通过数组表示提示框浮层的位置,数字设置绝对位置,百分比设置相对位置。

position: [10,10]  //绝对位置,相对于容器左侧10px,上侧10px

position: ['50%', '50%']  //相对位置,放置在容器正中间

示例如下:

tooltip: {
  show: true,
  trigger: 'item',
  formatter: "{a} <br/>{b}: {c} ({d}%)",
  position: ['50%', '50%']
},

相关文章:

  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-12-09
  • 2021-12-09
  • 2022-03-02
  • 2022-12-23
相关资源
相似解决方案