In jqplot graph, jqplotSaveImage() is not working

0

I am using jqplot graph, in that i am trying to save the graph as image by using jqplotSaveImage(), but when i triggered this function i get the following exception,

Unhandled exception at line 3, column 146939 in jquery.jqplot.min.js

0x8007007a - JavaScript runtime error: unknown exception

Any idea how to solve this?

jquery
exception
graph
jqplot
asked on Stack Overflow Sep 23, 2014 by Nandha

1 Answer

0

Try to override this function:

$.fn.jqplotSaveImage = function() {
    var imgData = $(this).jqplotToImageStr({});
    if (imgData) {
        window.location.href = imgData.replace("image/png", "image/octet-stream");
    }

};
answered on Stack Overflow Nov 22, 2014 by Alex Filatov

User contributions licensed under CC BY-SA 3.0