style (subtitle properties)

부제목의 스타일을 설정합니다.

Info

name type required (default) description
style.color string 선택 폰트 색상
CSS 색상 (예: "#333333", "red", "rgba(0,0,0,0.5)")
style.fontSize number or string 선택 폰트 크기
CSS 크기 문자열 또는 픽셀 숫자 (예: "12px", "1.2em", 12)
style.fontWeight string 선택 폰트 두께
CSS 글자 굵기 (예: "normal", "bold")

Example

myChart.setOptions({
  title: {  // title 설정
    text: "cc별 중고자동차 판매량"
  },
  subtitle: {  // subtitle 설정
    text: "2014년 1/4분기",
    style: {
      color: "red",
      fontSize: "1.2em",
      fontWeight: "bold"
    }
  }
}, {
  append: true,
  redraw: true
});

제공 버전

version desc
7.3.0.0