jQWidgets Forums

jQuery UI Widgets Forums Chart Save Multiple as Image

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Save Multiple as Image #28022

    tranen
    Participant

    Hi,

    I have different graph and I would like to use only one button to save them all.
    After all the graph create I put the function

    $(document).ready(function () {
    $("#pngButton").click(function () {
    $('#jqxChart1').jqxChart('saveAsPNG', 'myChart1.png');
    $('#jqxChart2').jqxChart('saveAsPNG', 'myChart2.png');
    $('#jqxChart3').jqxChart('saveAsPNG', 'myChart3.png');
    $('#jqxChart4').jqxChart('saveAsPNG', 'myChart4.png');
    });
    });

    and the button

    <input id="pngButton" type="button" value="Save As PNG" />

    but it only save the first graph. How can I do to save them all in one time?

    Thanks

    Save Multiple as Image #28023

    Peter Stoev
    Keymaster

    Hi tranen,

    It is not possible to save multiple Graphs at the same time, because the saving process includes a server request. Once the saving is completed, you can then make another save and so on.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.