panKey (chart properties)
확대(zooming)와 패닝(panning)을 함께 쓸 때, 패닝으로 동작하게 할 키를 설정합니다.
이 키를 누르지 않고 드래그하면 확대, 누른 채 드래그하면 이동합니다.
Info
| name |
type |
required(default) |
description |
| panKey |
string |
선택(undefined) |
확대(zooming)와 패닝(panning)을 함께 쓸 때, 패닝으로 동작하게 할 키를 설정합니다. |
Enum
| value |
description |
| alt |
Alt 키 |
| ctrl |
Ctrl 키 |
| meta |
Meta(⌘) 키 |
| shift |
Shift 키 |
Example
myChart.setOptions({
chart: {
type: "line",
zooming: {
type: "x"
},
panning: {
enabled: true
},
panKey: "ctrl"
},
series: [{
name: "서울",
data: [60, 40, 20, 80, 50, 30, 70, 90]
}]
}, {
append: true,
redraw: true
});
제공 버전