position: function (pos, params, dom, rect, size) {
// 鼠标在左侧时 tooltip 显示到右侧,鼠标在右侧时 tooltip 显示到左侧。
var obj = {top: 60}
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5
return obj
position: function (point, params, dom, rect, size) {
return {left: '40%', bottom: 20};
}
width: 128px;
height: 110px;
border: 1px solid #F1F1F1;
background: linear-gradient(0deg, #F8F8F8 0%, #FFFFFF 100%);
border-radius: 6px;
width: 128px;
height: 110px;
border: 1px solid #F1F1F1;
background: linear-gradient(0deg, #F8F8F8 0%, #FFFFFF 100%);
border-radius: 6px;