colorKey (plotOptions properties)
색상 축(colorAxis)을 쓸 때 포인트 색상을 정하는 값을 설정합니다.
히트맵은 기본으로 value(세 번째 값)를 사용합니다. y로 바꾸면 행 위치에 따라 색이 정해집니다.
Info
| name |
type |
required(default) |
description |
| colorKey |
string |
선택(value (heatmap), y (그 외)) |
색상 축(colorAxis)을 쓸 때 포인트 색상을 정하는 값을 설정합니다. |
Example
myChart.setOptions({
chart: {
type: "heatmap"
},
colorAxis: {
minColor: "#FFFFFF",
maxColor: "#4572A7"
},
plotOptions: {
series: {
colorKey: "y"
}
},
series: [{
name: "방문자",
data: [[0, 0, 10], [0, 1, 19], [1, 0, 92], [1, 1, 58], [2, 0, 35],
[2, 1, 15], [3, 0, 72], [3, 1, 132], [4, 0, 38], [4, 1, 5]]
}]
}, {
append: true,
redraw: true
});
제공 버전