自定义echart tooltip格式

formatter: function (tipData) {
    return tipData[0].name + '</br>'
             + '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + tipData[0].color + '"></span>' + tipData[0].seriesName + ':'+'&nbsp'+'&nbsp'+tipData[0].data+'</br>'
             +...
}

 

posted @ 2017-05-10 17:06  枫叶布  阅读(3920)  评论(0编辑  收藏  举报