ajacinto
Posts: 11
Joined: Mon Oct 21, 2019 12:03 pm

Limit the function links available with export chart

Is there a way within Highcharts cloud of limiting the types of exports that are available for users? For example, I just want to limit the options to the ones in the red box in the attached sample.
export-sample.jpg
export-sample.jpg (143.64 KiB) Viewed 5740 times
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Limit the function links available with export chart

Hi,

Thank you for contacting us with your question.

It should be possible to set it through API options but it's not. I reported it on our Cloud GitHub issues tracker.
You can find a workaround there: https://github.com/highcharts/highchart ... issues/560

Let me know if you have any further questions.

Best regards!
Rafal Sebestjanski,
Highcharts Team Lead
ajacinto
Posts: 11
Joined: Mon Oct 21, 2019 12:03 pm

Re: Limit the function links available with export chart

Thanks for your reply! The link appears broken though. I also tried searching GitHub. Is access restricted somehow?
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Limit the function links available with export chart

Hi,

Yes, sorry, I forgot that this is a private repo.
This is a workaround attached in that ticket:

Code: Select all

Highcharts.merge(true, options, {
    chart: {
    	events: {
        	load: function() {
            	this.update({
                	exporting: {
                      buttons: {
                          contextButton: {
                          	menuItems: ["downloadPNG", "downloadJPEG", "downloadPDF", "downloadSVG"]
                        }
                      }
                    }
                })
            }
        }
    }
});

Please, paste this into the Custom Code in Cloud.

Let me know if you have any further questions.

Best regards!
Rafal Sebestjanski,
Highcharts Team Lead
ajacinto
Posts: 11
Joined: Mon Oct 21, 2019 12:03 pm

Re: Limit the function links available with export chart

Great, thanks for this!

Return to “Highcharts Cloud”