amcharts / export

Apache License 2.0
56 stars 33 forks source link

Properties for disable export to PDF and XLSX #55

Closed JosefJezek closed 7 years ago

JosefJezek commented 7 years ago

I would like disable export to PDF and XLSX. I have custom menu, but I can not disable loading libs.

maertz commented 7 years ago

You can disable "autoLoad" in your libs setup to manually load your dependencies or overwrite the resources list to your needs

{
    ...
    export: {
        enabled: true,
        libs: {
            resources: [ "fabric.js/fabric.min.js", "FileSaver.js/FileSaver.min.js", {
                "jszip/jszip.min.js": [ "xlsx/xlsx.min.js" ],
                "pdfmake/pdfmake.min.js": [ "pdfmake/vfs_fonts.js" ]
            } ]
        }
    }
}

The object values are used to determine the dependency of an resource.

JosefJezek commented 7 years ago

Thank you