itemMarginBottom (legend properties)
범례 항목 아래쪽 여백(px)을 설정합니다. 세로 배치(layout: "vertical") 범례에서 항목 간격을 넓힐 때 사용합니다.
Info
| name |
type |
required(default) |
description |
| itemMarginBottom |
number |
선택(2) |
범례 항목 아래쪽 여백(px)을 설정합니다. 세로 배치(layout: "vertical") 범례에서 항목 간격을 넓힐 때 사용합니다. |
Example
myChart.setOptions({
chart: {
type: "line"
},
legend: {
layout: "vertical",
align: "right",
verticalAlign: "middle",
itemMarginBottom: 10
},
series: [{
name: "서울",
data: [60, 40, 20, 80]
}, {
name: "인천",
data: [30, 50, 90, 70]
}]
}, {
append: true,
redraw: true
});
제공 버전