jQuery UI Widgets › Forums › Chart › jqx chart export
Tagged: export chart
This topic contains 6 replies, has 2 voices, and was last updated by atomic 1 year, 5 months ago.
-
Authorjqx chart export Posts
-
Hi,
I have developer license and have set up export.php server, I managed to get png or jpeg export but when I try to access these images I get error format not supported.
Any ideas would be appreciated.
BestHi atomic,
Could you send us a jsfiddle example of this? Did you use the export.php file from the client portal which you can download from there because we use the same for export?
Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/I is quite simple.
I use export.php found in PHPExport folder in jqx source.— REMOVE CODE —-
This is my button event handler.
$("#exportRoi").click(function() { $("#ROIChart").jqxChart('saveAsPNG', 'ROI.png', 'Api/PHPExport/export.php'); });This event click does export ROI.png, but when I try to open .png I get file not supported.
Thanks
Hi atomic,
We use the same. I do not understand why you get this error. What is the type of the file after you export it?
Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi Peter,
Here is the file I get as exportPNG
ROI.pngWhen I try to open it it says File not supported.
Thanks
Hi atomic,
Make sure the URL to your file is correct, because i opened this file with notepad and see “Notice: Undefined index: REMOTE_HOST in C:\wamp64\www\NEST\NEST\Api\PHPExport\export.php on line 6
” which basically means that the URL is incorrect.Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi Peter,
You are right $_SERVER[‘REMOTE_HOST’] Remote host is index that is not defined.
If I comment out part where you write export_log.txt file (in export.php script) all works, and I am able to open file.
a bit strange how this warning ends up in content.Thanks.
-
AuthorPosts
You must be logged in to reply to this topic.