tooltip: {
show: true,
customizeTip: "统计经销商本月和全年的进口车\n收车数,包含BMW, MINI。",
trigger: "axis",
formatter: "",
position: function(point, params, dom, rect, size){
if(point[0] > size.contentSize[0] && point[1] > size.contentSize[1]){
return [point[0] - size.contentSize[0], point[1]-size.contentSize[1]];
} else if(point[0] <= size.contentSize[0] && point[1] >= size.contentSize[1]){
return [0, point[1]-size.contentSize[1]];
} else if(point[0] >= size.contentSize[0] && point[1] <= size.contentSize[1]){
return [point[0] - size.contentSize[0],0];
} else if(point[0] <= (size.viewSize[0] - size.contentSize[0]) && point[1] <= (size.viewSize[1] - size.contentSize[1])){
return [point[0]+10, point[1]];
} else {
return [0,0]
}
}
...
}
tooltip: {
show: true,
customizeTip: "",
trigger: "axis",
formatter: "",
appendToBody: true,
...
}