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

Exporting not working in a mobile browser #24

Open
ChartHeaven opened this issue Nov 25, 2015 · 8 comments
Open

Exporting not working in a mobile browser #24

ChartHeaven opened this issue Nov 25, 2015 · 8 comments

Comments

@ChartHeaven
Copy link

It won't open files such as PDF although I have Adobe Reader in my phone. However, normal Highcharts exporting works with mobile browsers and it always asks whether I want to open the file in a mobile browser. So are mobile browsers supported in client-side exporting?

@A----
Copy link
Owner

A---- commented Nov 25, 2015

What's happening? Can you download the file but can't open it in Acrobat Reader on your phone?
Have you tried other clients beside Reader? What's your mobile operating system and have you tried other ones?
What's the version of your dependencies, especially jsPDF? Have you tried to upgrade it?

@ChartHeaven
Copy link
Author

Mobile OS: Windows Phone 8.1
Browser: IE 11

Highcharts export works fine. The phone downloads the file (PNG, JPG, PDF), asks me if I want to open or save the file on my phone, and shows it without problems.
Test address I used: http://www.highcharts.com/demo/line-basic

Client-side export doesn't do anything or respond if click on the PNG, JPG or PDF item from the context menu. The phone doesn't download the file (PNG, JPG, PDF), it doesn't ask me to open or save the file, or show the file. Test address I used: http://www.highcharts.com/plugin-registry/single/37/highcharts-export-clientside.

Note: Client-side export works fine in a desktop browser, but for some reason, it doesn't work in a mobile browser. I haven't tested other mobile browsers yet so it's possible that it may work on Android or IPhone.

@A----
Copy link
Owner

A---- commented Nov 26, 2015

I tried to emulate an IE11 as “Windows Phone” (in the developer tools, F12) but no luck there, it still works. No idea if this really emulates anything.
You're on your own on this one. There's probably something in the console if there's such a thing or something.
Keep me updated if you find what's wrong!

@ChartHeaven
Copy link
Author

I got a Javascript error from canvas-tools.js when emulating IE 11 as Windows Phone (the browser I used for emulation was IE 11 Desktop). And this happens when I go to the client-side export address: http://www.highcharts.com/plugin-registry/single/37/highcharts-export-clientside.

emulationmodeie11mobile

jserrorie11emulation

But it works normally without errors if I go the highcharts export page: http://www.highcharts.com/demo/line-basic

emulationmodeie11mobilenoerrors

nojserrorie11emulation

@A----
Copy link
Owner

A---- commented Nov 26, 2015

Those errors are expected. See #15 and #8 .

@ChartHeaven
Copy link
Author

Ok, I try to run some tests on Android and IPhone using Chrome and Safari. If it works with them then it's clearly an IE-specific issue.

@ChartHeaven
Copy link
Author

Here are more test results.

Test address: http://www.highcharts.com/plugin-registry/single/37/highcharts-export-clientside

IPhone 6S Plus (Safari 9, IOS9)
Didn't work at all. Clicking on buttons or items from the context menu didn't download or open a file. Only CSV and XLS options were shown in the context menu while others were missing.

Samsung Galaxy S6 Edge (Chrome 44, Android Lollipop 5.1.1)
Didn't work at all. The whole chart was missing and only SVG, PNG, JPEG, PDF, CSV, XLS buttons were visible (which didn't download or open a file).

So to me it looks like this plugin is compatible only with desktop browsers.

@rapcal
Copy link

rapcal commented Jan 5, 2016

I can confirm that only CSV and XLS export options are available in Chrome or Safari on iOS 9 (missing PNG, JPG, PDF & SVG).

Charts are displayed without any issues.

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

No branches or pull requests

3 participants