echars自定义提示框位置

tooltip: {
    trigger: 'item',
    formatter: "{a} <br/>{b}: {c} ({d}%)",
    position:function(p){ //其中p为当前鼠标的位置
        return [p[0] + 10, p[1] - 10];
    },
    extraCssText:'160px;height:40px;background:red;'

}
原文地址:https://www.cnblogs.com/loveMis/p/9303301.html