2013-02-08 57 views
-1

highchats刪除高圖的捲動部分

高亮顯示的「綠色」部分是否可以刪除?

代碼:

chart = new Highcharts.StockChart({ 
    chart: { 
     renderTo: renderTo, 

    }, 
    title: { 
     text: 'test - ' + title 
    }, 
    zoomType: false, 
    subtitle: { 
    text: 'some text' 
    }, 
    rangeSelector: { 
     selected: 4 
    }, 

    yAxis: { 
     labels: { 
      formatter: function() { 
       return (this.value/1000000) + "mil"; 
      } 
     }, 
     plotLines: [{ 
      value: 0, 
      width: 2, 
      color: 'silver' 
     }] 
    }, 

    credits: { 
     enabled:false 
    }, 


     plotOptions: { 
     series: { 

      marker : { 
       enabled : true, 
       radius : 3 
      } 
     } 

    }, 

    }, 

    series: seriesOptions 
}); 
+0

嗯...你有什麼碼? – Tschallacka 2013-02-08 13:39:38

回答

2

文檔是你的朋友。

Highstock演示庫 - 禁用導航
http://www.highcharts.com/stock/demo/navigator-disabled

必要的代碼:

navigator : { 
    enabled : false 
}, 

工作實例:http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/stock/demo/navigator-disabled/

+2

相關文檔:http://api.highcharts.com/highstock#navigator – 2013-02-08 13:46:18

+0

謝謝,我找不到這個區域是怎麼叫的。 – 2013-02-08 13:50:57

-1

嗯... 快速和骯髒的

<div id="highchart"> 
highchart code here 
</div> 
<div style="background:white;display:block;position:relative;width:400px;margin-top:-150px;"> 
the rest of your site/content here 
</div> 

witht他有限的信息量您提供,這是所有我能想到的。