footerFormat (tooltip properties)

툴팁 내용 아래쪽에 붙일 문구를 설정합니다. 공통 툴팁(shared)에서 합계나 안내 문구를 표시할 때 주로 사용합니다.
{point.total}(누적 차트의 합계) 등 툴팁 형식 변수를 사용할 수 있습니다.

Info

name type required(default) description
footerFormat string 선택("") 툴팁 내용 아래쪽에 붙일 문구를 설정합니다. 공통 툴팁(shared)에서 합계나 안내 문구를 표시할 때 주로 사용합니다.
툴팁 끝에 덧붙일 HTML 문자열 (예: "</table>")

Example

myChart.setOptions({
  chart: {
    type: "column"
  },
  plotOptions: {
    series: {
      stacking: "normal"
    }
  },
  tooltip: {
    shared: true,
    footerFormat: "<b>합계: {point.total}</b>"  // 누적 합계 표시
  },
  series: [{
    name: "서울",
    data: [60, 40, 20, 80]
  }, {
    name: "인천",
    data: [30, 50, 90, 70]
  }]
}, {
  append: true,
  redraw: true
});

제공 버전

version desc
7.3.0.0