echatrs tooltip axis marker

2021-07-26  本文已影响0人  Spidd
tooltip: {
    trigger: 'axis',
    formatter(params) {
      let res = params[0].name;
      // eslint-disable-next-line no-plusplus
      for (let i = 0; i < params.length; i++) {
        res += `<br>${params[i].marker}${params[i].seriesName}:${params[i].data}套`;
      }
      return res;
    },
  },
tooltip: {
    trigger: 'item',
    formatter(param) {
      return `${param.marker} ${param.name}:${param.value}%`;
    },
  },
上一篇下一篇

猜你喜欢

热点阅读