santiagodev
Posts: 1
Joined: Wed May 18, 2022 1:59 pm

Print on Safari does not work as expected

I am programmatically trying to print a chart using

Code: Select all

chart.print()

Chrome and Firefox work fine with this approach while in Safari nothing happens, the interesting part is that I am doing the same for exporting as a PNG file

Code: Select all

chart.exportChart()
when I try that I get a download permission request from Safari, and after that is when I am able to print.

Also, my exported pictures look completely black

I am using React with highcharts-react-official": "3.0.0" and "highcharts": "9.0.0"
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Print on Safari does not work as expected

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

According to chart.print method, it is a bug and unfortunately, I can't provide you with any workaround at this moment, as it most likely would require some changes in the source code. I have created a ticket with the issue:
https://github.com/highcharts/highcharts/issues/17311

According to chart.exportChart method I was trying to reproduce your problem, but everything is working correctly in my case in Chrome, Firefox and Safari. Here is a simple demo: https://codesandbox.io/s/highcharts-rea ... ked-zxqn0x Could you reproduce the issue in an online editor that I could work on?

Also, I recommend you to use the latest Highcharts version, which is Highcharts v10.1.0 https://www.highcharts.com/blog/changel ... ts-v10.1.0

Best regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”