echars自定义提示框位置

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

}

猜你喜欢

转载自www.cnblogs.com/loveMis/p/9303301.html
今日推荐