Hide or disable navigator handles in highcharts

我是研究僧i 提交于 2019-12-25 14:41:29

问题


I want to disable the use of navigator in highcharts but still show it as "full" small chart.

Is it possible?


回答1:


Yes, you can hide them in callback: http://jsfiddle.net/nX37D/

But user still will have possibility to change extremes by using handles (even if they are invisible). To change that behavior, you will need to edit sources.

$('#container').highcharts('StockChart', options, function (chart) {
    var handles = chart.scroller.handles;
    setTimeout(function () {
        handles[0].hide();
        handles[1].hide();
    }, 1);
});



回答2:


Another way to hide them within the API is:

    navigator: {
        handles: {
            backgroundColor: 'transparent',
            borderColor: 'transparent'
        }
    },

Fiddle here.



来源:https://stackoverflow.com/questions/21331109/hide-or-disable-navigator-handles-in-highcharts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!