itemStyle (legend properties)
범례 항목의 스타일을 설정하는 속성입니다.
Info
name |
type |
required (default) |
description |
itemStyle |
object |
선택 |
범례 항목의 스타일 설정 |
itemStyle.color |
color |
선택 |
범례 항목의 text 색상 |
itemStyle.fontWeight |
string |
선택 |
범례 항목의 text 굵기 |
itemStyle.fontSize |
string |
선택 |
범례 항목의 text 크기 |
Example
myChart.setOptions({
chart: {
type: "column"
},
legend: {
itemStyle: {
color: "#FF0000",
fontWeight: "bold",
fontSize: "1.5em"
}
},
series: [{
name: "서울",
data : [60,40,20,80]
},{
name: "인천",
data : [30,50,90,70]
},{
name: "부산",
data : [40,70,30,60]
}]
}, {
append: true,
redraw: true
});
제공 버전