softMax (colorAxis properties)
색상 축 최대값의 하한을 설정합니다.
데이터가 이 값보다 작으면 이 값까지를 색상 범위로 쓰고, 데이터가 더 크면 데이터에 맞게 늘어납니다. 여러 차트에서 같은 색상 기준을 쓸 때 유용합니다.
색상 축은 히트맵(modules/heatmap.js) 등 색상 축을 쓰는 차트에서 범례에 그라데이션 막대로 표시됩니다.
Info
| name |
type |
required(default) |
description |
| softMax |
number |
선택(undefined) |
색상 축 최대값의 하한을 설정합니다. |
Example
myChart.setOptions({
chart: {
type: "heatmap"
},
xAxis: {
categories: ["월", "화", "수", "목", "금"]
},
yAxis: {
categories: ["오전", "오후"],
title: null
},
colorAxis: {
minColor: "#FFFFFF",
maxColor: "#4572A7",
softMax: 200
},
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
});
제공 버전