margin (yAxis properties)

같은 쪽에 축이 여러 개 있을 때 축과 축 사이의 간격(px)을 설정합니다.

Info

name type required(default) description
margin number 선택(0) 같은 쪽에 축이 여러 개 있을 때 축과 축 사이의 간격(px)을 설정합니다.

Example

myChart.setOptions({
  chart: {
    type: "line"
  },
  yAxis: [{
    title: { text: "매출" }
  }, {
    title: { text: "이익률" },
    margin: 40   // 첫 번째 y축과 40px 간격
  }],
  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