style (chart properties)

차트 전체에 적용할 글꼴 등 기본 스타일을 설정합니다.
제목, 축 라벨, 범례 등 개별 style을 지정하지 않은 요소에 적용됩니다.

Info

name type required(default) description
style object 선택(undefined) 차트 전체에 적용할 글꼴 등 기본 스타일을 설정합니다.
style.fontFamily string 선택(undefined) 글꼴
CSS font-family 문자열 (예: "Malgun Gothic, sans-serif")
style.fontSize string 선택(undefined) 기본 글자 크기
CSS 글자 크기 문자열 (예: "13px", "1em")

Example

myChart.setOptions({
  chart: {
    type: "column",
    style: {
      fontFamily: "Malgun Gothic, sans-serif",
      fontSize: "13px"
    }
  },
  series: [{
    name: "서울",
    data: [60, 40, 20, 80]
  }, {
    name: "인천",
    data: [30, 50, 90, 70]
  }]
}, {
  append: true,
  redraw: true
});

제공 버전

version desc
7.3.0.0