height (yAxis properties)

축의 길이를 설정합니다. 숫자는 px, 문자열 백분율(예: "50%")은 그래프 영역 높이 기준입니다.
top과 함께 y축을 위아래로 나눠 사용할 때 씁니다.

Info

name type required(default) description
height number or string 선택(undefined) 축의 길이를 설정합니다. 숫자는 px, 문자열 백분율(예: "50%")은 그래프 영역 높이 기준입니다.

Example

myChart.setOptions({
  chart: {
    type: "line"
  },
  yAxis: [{
    title: { text: "매출" },
    height: "50%"         // 위쪽 절반
  }, {
    title: { text: "이익률" },
    top: "50%",           // 아래쪽 절반
    height: "50%",
    offset: 0
  }],
  series: [{
    name: "매출",
    data: [60, 40, 20, 80]
  }, {
    name: "이익률",
    data: [3.1, 5.2, 4.4, 6.9],
    yAxis: 1
  }]
}, {
  append: true,
  redraw: true
});

제공 버전

version desc
7.3.0.0