美文网首页
echatrs tooltip axis marker

echatrs tooltip axis marker

作者: Spidd | 来源:发表于2021-07-26 19:05 被阅读0次
    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}%`;
        },
      },
    

    相关文章

      网友评论

          本文标题:echatrs tooltip axis marker

          本文链接:https://www.haomeiwen.com/subject/uqmgmltx.html