headerFormat (tooltip properties)

툴팁의 헤더 출력 포맷을 설정합니다.

Info

name type required description
headerFormat object 선택 툴팁 헤더 출력 포맷

Enum

value description
{series.name} 시리즈명
{series.color} 시리즈 색상
{point.x} x축 값
{point.y} y축 값

Example

myChart.setOptions({
  chart: {
    type: "column"
  },
  tooltip: {
    headerFormat: "{series.name}<br/>",     // 툴팁의 헤더 출력 포맷
    pointFormat: "{point.x}, {point.y}"
  },
  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