欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

echarts 工具提示太长而无法截断的解决方案 - 不溢出框显示弹出框

最编程 2024-05-08 08:20:09
...
tooltip: {
        extraCssText: 'white-space: normal; word-break: break-all;',
        // xtraCssText: 'max-width: 200px; overflow: auto;', // 设置最大宽度,并启用滚动条
      confine: true,
      show: true,
      formatter: "{b}: {c}",
      textStyle: {
        width: funt(150),
         fontSize: funt(15) // 字体大小
      },
   },