범례의 배치 방법을 설정 합니다.
name | type | required (default) | description |
---|---|---|---|
layout | string |
선택(horizontal) | 배치 방법 |
value | description |
---|---|
horizontal | 가로 나열 배치 |
vertical | 세로 나열 배치 |
myChart.setOptions({
chart: {
type: "column"
},
legend: {
layout: "vertical", // 범례의 배치 방법 설정(세로 나열)
align: "right",
verticalAlign: "middle"
},
series: [{
name: "서울",
data : [60,40,20,80]
},{
name: "인천",
data : [30,50,90,70]
},{
name: "부산",
data : [40,70,30,60]
}]
}, {
append: true,
redraw: true
});
version | desc |
---|---|
7.3.0.0 |