How to remove button from Highcharts

前端 未结 8 616
北荒
北荒 2021-02-02 04:42

I\'m creating charts with the Highcharts library and I wonder how to remove the 2 little buttons on the right corner which one you can print and download graphs and I\'d like to

8条回答
  •  盖世英雄少女心
    2021-02-02 05:38

    Check this to create new button:

    Example: http://jsfiddle.net/fXHB5/3496/

    exporting: {
        buttons: [
            {
                symbol: 'diamond',
                x: -62,
                symbolFill: '#B5C9DF',
                hoverSymbolFill: '#779ABF',
                _titleKey: 'printButtonTitle',
                onclick: function() {
                    alert('click!')
                }
            }
        ]
    }
    

提交回复
热议问题