2013-03-08 99 views
1

我在放大後出現了高分辨率列範圍工具提示問題。 基本上,在我放大列範圍圖表上的(zoomType:'xy')後,對於某些列顯示工具提示,而其他一些工具提示只是簡單地拒絕彈出。我試着調試它,並且tooltip.positioner函數沒有被調用。highcharts tooltip not zoom after zoom

try it

將以下內容複製並運行。

$(function() { 
    window.chart = new Highcharts.Chart({ 
     chart: { 
      renderTo: 'container', 
      type: 'columnrange', 
      inverted: true, 
      zoomType: 'xy' 
     }, 

     xAxis: { 
      categories: ['Jan', 'Feb', 'Mar'] 
     }, 

     legend: { 
      enabled: false 
     }, 

     series: [{ 
      name: 'Temperatures', 
      data: [ 
       [-9.7, 9.4], 
       [-8.7, 6.5], 
       [-3.5, 9.4] 
      ] 
     }] 
    }); 
}); 

現在嘗試縮放,您會注意到有時某些特定列的工具提示不會顯示出來。

有什麼建議嗎?

+0

它的出現,因爲提示在點的中心位置,並且在縮放的情況下,則它的位置超出了標繪區域。所以你可以使用工具提示定位器並定義正確的位置。 http://api.highcharts.com/highcharts#tooltip.positioner – 2013-03-11 15:23:39

+0

其實我試過定位器,它仍然不起作用,highcharts認爲它仍然在劇情區域外。 – 2013-03-12 04:40:30

回答