2013-02-08 52 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他有限的信息量您提供,这是所有我能想到的。