shahidzahoor
Posts: 6
Joined: Tue Dec 08, 2020 9:30 am

Fixed Path for exporting charts

Hi.

I want to export chart to a local folder on my pc by default . I used to below mentioned code for exporting but it ask to save or open image every time. I can i set a folder path so the image save automatically without asking for destination.

Code: Select all

	var chart = $('#divItems').highcharts();
                    setTimeout(function () {
                        chart.exportChart({
                            type: 'image/jpeg',
                            filename: 'mychart'

                        }

                            );
                    }, 2000);
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Fixed Path for exporting charts

Hello shahidzahoor,

Thanks for contacting us with your question.

If you want to set specific local path where exported files would be saved then this is not possible because of browsers limitations, they simply do not access your filesystem like that. It doesn't have anything to do with Highcharts.

Let me know if you have any further questions!
Regards!
Mateusz Bernacik
Highcharts Developer
shahidzahoor
Posts: 6
Joined: Tue Dec 08, 2020 9:30 am

Re: Fixed Path for exporting charts

Dear mateusz

thank you for your reply. Can you please suggest a work around for this issue.
We created a console application which is targeting the webform (.aspx) which contain that specific chart. Now we want that after this webform is completely loaded, it should automatically downloaded to a specific folder and then our code will pick that chart image and send it to some users through email.

We highly appreciate your help and support.

Regards
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Fixed Path for exporting charts

Hi shahidzahoor,

Sorry but we can't really help you, we provide here support strictly related to Highcharts and "console application which is targeting the webform" is not a Highcharts specific problem so we are simply not able to help you with this case here - please try looking for the answer on a more general knowledge exchange portal like Stack Overflow.

In case of any Highcharts related questions feel free to contact us anytime.
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”