Highcharts,放大底部导航栏

问题描述:

当我放大主图表时调用函数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

我认为这是一些什么你在找什么方向: http://jsfiddle.net/7VgJM/3/

我不太清楚你问什么,但做了有根据的猜测。