Hey @ian, ty for your fast answer, I figure out the problem. I was not setting the responseType as stream, then I couldn’t do a pipe on the response.
This is my final code and work well:
Now I’m able to save the file at the root directory, but I’m stucked in another problem. I changed the approach from GET to POST because the formatter function was not working in the first case, so I figured maybe it would work if I used the POST request, but well, didn’t work. Do you have any advice for this?
Oh, thank you bro! All working perfectly!!
I have another question but I asked it on another channel as the topic is different. Maybe you can help me with that, too?
Unfortunately the Apex Charts renderer doesn’t have as many fonts as the Chart.js renderer. I believe it only supports sans, serif, and mono at the moment.
I will make sure that expanding font selection is added to our roadmap