범례 항목의 스타일을 설정하는 속성입니다.
| name | type | required (default) | description |
|---|---|---|---|
| itemStyle | object |
선택 | 범례 항목의 스타일 설정 |
| itemStyle.color | color |
선택 | 범례 항목의 text 색상 |
| itemStyle.fontWeight | string |
선택 | 범례 항목의 text 굵기 CSS 글자 굵기 (예: "normal", "bold") |
| itemStyle.fontSize | string |
선택 | 범례 항목의 text 크기 CSS 크기 문자열 (예: "12px", "1.2em") |
myChart.setOptions({
chart: {
type: "column"
},
legend: {
itemStyle: { // 범례 항목의 스타일 설정
color: "#FF0000", // 범례 항목의 text 색상
fontWeight: "bold", // 범례 항목의 text 굵기
fontSize: "1.5em" // 범례 항목의 text 크기
}
},
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 |