2017-09-26 11 views
1

yAxis.plotLines.label位置を再配置する問題があります。 ハイチャートyAxis plotLinesラベル位置

ラベルを元の位置からplotLineの下に移動したいと考えています。 このlink

Highcharts.chart('container', { 
    xAxis: { 
     tickInterval: 24 * 3600 * 1000, // one day 
     type: 'datetime' 
    }, 

    yAxis: { 
     plotLines: [{ 
      color: 'red', 
      width: 2, 
      value: 100, 
      label: { 
       text: 'Plot line', 
       align: 'right' 
      } 
     }] 
    }, 

    series: [{ 
     data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4], 
     pointStart: Date.UTC(2010, 0, 1), 
     pointInterval: 24 * 3600 * 1000 
    }] 
}); 
+0

を確認してくださいあなたは90でプロットラインを言うことを意味していましたか? –

+0

eww、実際には、ラベルのテキストをplotLineの下に移動する必要があります。 –

答えて

1

ラベルpositinを調整するには、チェック​​

Fiddleデモ

yAxis: { 
    plotLines: [{ 
     color: 'red', 
     width: 2, 
     value: 100, 
     label: { 
      text: 'Plot line', 
      align: 'right', 
      y: 20, /*moves label down*/ 
     } 
    }] 
}, 
関連する問題