Disable PDF and SVG download options in Highcharts

前端 未结 3 1686
不知归路
不知归路 2021-02-15 18:36

I am using Highcharts v4.0.3 with exporting.js in my web app, and I want to be able to just provide the end user with the following download options:

  • Download Char
3条回答
  •  醉梦人生
    2021-02-15 19:07

    In chatOptions we can write customize options in the high-charts menu we can customize the dropdown options.
    In chart options, we can write like:

    exporting: {
        buttons: {
          contextButton: {
            menuItems: ['downloadPNG', 'downloadJPEG', 'downloadPDF', 'downloadSVG'],
          },
        },
    }
    

    Example: click here
    Reference: click here

提交回复
热议问题