Jump to content
We've recently updated our Privacy Statement, available here ×
  • Report zoom in visualize.js


    akonkin
    • Version: v6.1, v6.0.1 Product: Visualize.js

    Question:

    Is report zoom feature available in visualize.js?


    Answer:

    Yes. This feature was added to the v. 6.0.1 of the software.


    Please find a snippet from the documentation below:

    Scale report

    Sets zoom to report, provides functionality to fit report. Aspect ration for tables and crosstabs cannot be changed.

    Fit to container by default

    var report = v.report({

       resource: "/public/Sample",

       container: "#reportContainer",

       //by default the report will fit its container on render and will respond to window resize, fitting new size of the container

    });

    Zoom in/out report according to scale factor during initialization

    Icon

    It replaces default scale strategy

    var report = v.report({

       resource: "/public/Sample",

       container: "#reportContainer",

       scale: 0.5

    });

    Zoom in/out report according to scale factor after initialization

    report

       .scale(0.5)

       .run();


    Please also see a sample in fiddler:

    http://jsfiddle.net/NesterOne/5QM5j/embedded/


    If the sample in fiddler above is not available,

    please find a txt file with the sample of JavaScript and visualize.js

    code in the attachment to this article.

     

    report_zoom_sample.txt


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...