2011-11-17 96 views
0

當我放大主圖表時調用函數drawTable,但在放大底部導航欄時不調用。Highcharts,放大底部導航欄

例子: http://jsfiddle.net/gh/get/jquery/1.6/highslide-software/highcharts.com/tree/master/samples/stock/chart/events-selection/

window.chart = new Highcharts.StockChart({ 
       chart : { 
        renderTo : 'container', 
        zoomType: 'x', 
        events: { 
         selection: function(event) { 
          if (event.xAxis) { 
           drawTable(event.xAxis[0].min, event.xAxis[0].max); 
          } else { 
           $('#table').html('Selection reset'); 
          } 
         } 
        } 
       }, 

       rangeSelector : { 
        selected : 1 
       }, 

       title : { 
        text : 'Total Traf' 
       }, 


       xAxis : { 
        maxZoom : 14 * 24 * 3600000 // fourteen days 
       }, 

       series : [{ 
         name : 'TT', 
         data : data, 
         tooltip: { 
          yDecimals: 2 
         } 
        }] 
      }); 
     }); 
+1

我很樂意幫忙,但我不明白你在問什麼。 – eolsson

回答