minorTicks (colorAxis properties)
색상 축에 보조 눈금을 표시합니다.
보조 눈금 간격은 minorTicksPerMajor로 조정합니다. 보조 눈금선 두께 기본값이 0이므로 minorTickWidth를 함께 설정합니다.
색상 축은 히트맵(modules/heatmap.js) 등 색상 축을 쓰는 차트에서 범례에 그라데이션 막대로 표시됩니다.
Info
| name |
type |
required(default) |
description |
| minorTicks |
boolean |
선택(undefined) |
색상 축에 보조 눈금을 표시합니다. |
Example
myChart.setOptions({
chart: {
type: "heatmap"
},
xAxis: {
categories: ["월", "화", "수", "목", "금"]
},
yAxis: {
categories: ["오전", "오후"],
title: null
},
colorAxis: {
minColor: "#FFFFFF",
maxColor: "#4572A7",
minorTickWidth: 1,
minorTicks: true
},
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
});
제공 버전