jQWidgets Forums

jQuery UI Widgets Forums Chart jqx chart export

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  atomic 2 months, 1 week ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • jqx chart export #135626

    atomic
    Participant

    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.
    Best

    jqx chart export #135627

    admin
    Keymaster

    Hi 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 Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

    jqx chart export #135628

    atomic
    Participant

    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

    • This reply was modified 2 months, 1 week ago by  admin.
    • This reply was modified 2 months, 1 week ago by  admin. Reason: violation with copyright
    jqx chart export #135637

    admin
    Keymaster

    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 Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

    jqx chart export #135638

    atomic
    Participant

    Hi Peter,

    Here is the file I get as exportPNG
    ROI.png

    When I try to open it it says File not supported.

    Thanks

    jqx chart export #135641

    admin
    Keymaster

    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 Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

    jqx chart export #135644

    atomic
    Participant

    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.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.