删除highcharts的滚动部分

时间:2013-02-08 13:35:51

标签: javascript

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
});

2 个答案:

答案 0 :(得分:2)

文档是你的朋友。

Highstock Demo Gallery - 已禁用的导航器
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/

答案 1 :(得分:-1)

... ERR 又快又脏

<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>

由于他提供的信息量有限,这是我能想到的。