Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local exporting to PNG does not work with "allowHTML: true" [5.0.4+] #6499

Closed
stpoa opened this issue Mar 23, 2017 · 5 comments
Closed

Local exporting to PNG does not work with "allowHTML: true" [5.0.4+] #6499

stpoa opened this issue Mar 23, 2017 · 5 comments
Assignees

Comments

@stpoa
Copy link

@stpoa stpoa commented Mar 23, 2017

Expected behaviour

Export chart to PNG using local exporting.

Actual behaviour

Chart doesn't get exported to PNG

Live demo with steps to reproduce

http://jsfiddle.net/a4nfo52h/ - 5.0.4 - does not work
http://jsfiddle.net/a4nfo52h/1/ - 5.0.3 - works as expected

  1. Click export button
  2. Notice that nothing happens

Affected browser(s)

Chrome
Firefox
Safari

@oysteinmoseng
Copy link
Member

@oysteinmoseng oysteinmoseng commented Mar 27, 2017

Note that we are supposed to fall back when there is actual HTML in the chart. But I added a fix so it doesn't fall back unless there really are foreignObjects in the SVG.

@aviramga
Copy link

@aviramga aviramga commented Jul 10, 2018

Was this solved? Im still getting this on 6.1.0
@oysteinmoseng @stpoa

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Jul 11, 2018

Hi @aviramga,
When I run a demo: http://jsfiddle.net/BlackLabel/9fhajmbe/ chart is exported to a file. Please let me know which browser (including full number of versions) you have.

Chrome: 67.0.3396.99

@mantydze
Copy link

@mantydze mantydze commented Oct 4, 2019

Hi @sebastianbochan,

I'm fighting same battle right now...
My chart has yAxis with title like this "my units 10^30"

I tried to add simple snippet into highcharts config and export stopped working:

yAxis:{
    	title:{
      	   useHTML: true,
      	   text: 'my units 10<sup>30</sup>'
      }
},

See working example:
http://jsfiddle.net/u5e9cyn2/

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Oct 7, 2019

@mantydze

Please open js console, and you will find the reason: https://www.highcharts.com/errors/28/

(...) The offline exporting module will fail for certain browsers, and certain features (e.g. exporting.allowHTML ) (...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants