saket.tamgadge
Posts: 2
Joined: Wed Jan 05, 2022 9:02 am

Post exported png format file via an API call

We are using highcharts export module in our react application. And using it we are able to download the charts as a png file as well.
We need to upload the export png file to our server. Can this be done without custom export server?
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Post exported png format file via an API call

Hi saket.tamgadge,

Welcome to our forum and thanks for contacting us with your question!

Here is a thread with a similar question that might be helpful for you: Clientside Export - POST result to server

Let me know if that was what you were looking for,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
saket.tamgadge
Posts: 2
Joined: Wed Jan 05, 2022 9:02 am

Re: Post exported png format file via an API call

Hi Magdalena,

Thanks you for your response.
The example shared in the thread deals with the exported images from export server.
Similar to this thread, we are too updating the charts before exporting it as a png.
With the react highcharts exporting module, we are setting the background images before the chart gets exported.
We need to post the chart with custom exported configuration via an API before it gets downloaded
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Post exported png format file via an API call

Hi,

Thank you for clarifying. I need to consult with our export server expert to be sure. I will get back to you with an answer as soon as possible.

Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Post exported png format file via an API call

Hello again,

Described actions should be possible by using Client side export.
You will only need to configure locally the place of saving png images and create a request in your React app.

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Usage”