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",   // 범례 항목의 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