2014-11-24 87 views
2

檢查小提琴 - http://jsfiddle.net/4R5HH/209/ - 這只是爲了測試。Highcharts y軸plotlines標籤隱藏工具提示

我在y軸上有一個目標標籤,當將光標懸停在它們上方時,隱藏了系列工具提示。

對此的任何解決方案。

$(function() { 
$(document).ready(function() { 
    var chart = new Highcharts.Chart({ 
     chart: { 
      renderTo: 'container', 
      type: 'line' 
     }, 
     title: { 
      text: 'Dummy Data by Region' 
     }, 
     xAxis: { 
      categories: ['Africa', 'America', 'Asia'] 
     }, 
     yAxis: { 
      plotLines:[{ 
       value:75, 
       color: '#ff0000', 
       width:2, 
       zIndex:4, 
       label:{text:'goal'}, 
       dashStyle: 'line', 
       label: { 
        useHTML: true, 
        text: '<div class="targetLabel"><span>Target</span><br/><span style="font-weight: bold; padding-top: 5px;">' + '75' + '</span></div>', 
        align: 'center', 
        rotation: 0 
       }, 
      }] 
     }, 
     series: [{ 
      name: 'Year 1800', 
      data: [107, 31, 50] 
     }, 
       { 
      name: 'Goal', 
        type: 'scatter', 
        marker: { 
       enabled: false 
      }, 
      data: [450] 
     }] 
    }); 
}); 

});

+0

嗨,請問請提一下問題是什麼?或者你想達到什麼目的? – 2014-11-24 22:25:03

+0

你的意思是說,該工具提示是「下方」,藍色目標圈? – 2014-11-25 12:01:54

+0

工具提示隱藏在目標標籤後面。那麼如何在Target標籤上方顯示工具提示。 – DreamBig 2014-11-25 14:16:36

回答