Remove Export and print button plugin on highchart chart

后端 未结 4 1958
温柔的废话
温柔的废话 2021-02-04 01:47

I am using MVC and currently working with highchart

I am using the Exporting.js so users can print or export the highchart chart. I have two charts in a view and I would

4条回答
  •  孤独总比滥情好
    2021-02-04 02:08

    The first option that you mention:

    exporting: {
             enabled: false
    }
    

    breaks the highcharts object, if you are using it in a scenario in which you reuse the html container (ie refreshing data).

    the only viable option for me in that scenario is combining both:

      optionsMini.exporting = {
            enabled: false,
            buttons: {
                exportButton: {
                    enabled: false
                },
                printButton: {
                    enabled: false
                }
    
            }
        }
    

提交回复
热议问题