minorTicksPerMajor (colorAxis properties)
색상 축의 주 눈금 한 칸을 보조 눈금으로 몇 등분할지 설정합니다.
minorTicks가 true일 때 적용됩니다.
색상 축은 히트맵(modules/heatmap.js) 등 색상 축을 쓰는 차트에서 범례에 그라데이션 막대로 표시됩니다.
Info
| name |
type |
required(default) |
description |
| minorTicksPerMajor |
number |
선택(5) |
색상 축의 주 눈금 한 칸을 보조 눈금으로 몇 등분할지 설정합니다. |
Example
myChart.setOptions({
chart: {
type: "heatmap"
},
xAxis: {
categories: ["월", "화", "수", "목", "금"]
},
yAxis: {
categories: ["오전", "오후"],
title: null
},
colorAxis: {
minColor: "#FFFFFF",
maxColor: "#4572A7",
minorTicks: true,
minorTickWidth: 1,
minorTicksPerMajor: 2
},
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
});
제공 버전