position (tooltip properties)
fixed가 true일 때 툴팁의 고정 위치를 설정합니다.
Info
| name |
type |
required(default) |
description |
| position |
object |
선택({x: 0, y: 3}) |
fixed가 true일 때 툴팁의 고정 위치를 설정합니다. |
| position.align |
string |
선택(left) |
가로 정렬 (left, center, right) |
| position.verticalAlign |
string |
선택(top) |
세로 정렬 (top, middle, bottom) |
| position.relativeTo |
string |
선택(plotBox) |
기준 영역 (plotBox: 그래프 영역, chart: 차트 전체, pane, spacingBox) |
| position.x |
number |
선택(0) |
가로 이동 값(px) |
| position.y |
number |
선택(3) |
세로 이동 값(px) |
Example
myChart.setOptions({
chart: {
type: "line"
},
tooltip: {
fixed: true,
position: {
align: "right",
verticalAlign: "top",
relativeTo: "chart",
x: -10,
y: 10
}
},
series: [{
name: "서울",
data: [60, 40, 20, 80]
}, {
name: "인천",
data: [30, 50, 90, 70]
}]
}, {
append: true,
redraw: true
});
제공 버전