Jump to content
  • How to configure TIBCO Jaspersoft® Studio on Windows to render Charts, Widgets and Maps Pro components


    vchiem
    • Features: Charts Version: v6.4 Product: Jaspersoft® Studio

    Issue:

    How to render the Components Pro elements such as Widgets Pro, Maps Pro, Charts Pro in a report?


    Solution:

    To configure TIBCO Jaspersoft® Studio to use PhantomJS (javascript engine) for Pro Charts,  including Pro Widgets and Pro Maps:

    Download phantomjs-2.1.1-windows.zip (http://phantomjs.org/) and extract contents to C:phantomjs-2.1.1-windows

    In Studio, navigate to Window -> Preferences -> Jaspersoft Studio -> Properties and add:

    com.jaspersoft.jasperreports.fusion.phantomjs.executable.path=C:\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe
    com.jaspersoft.jasperreports.fusion.charts.render.type=html5
    com.jaspersoft.jasperreports.fusion.maps.render.type=html5
    com.jaspersoft.jasperreports.fusion.widgets.render.type=html5

    These settings will render the Pro components using HTML5 renderer. 

    Note: If you are encountering the following error after applying the steps:

    "Cannot run program "C:\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe" (in directory "C:\users\<profile>\AppData\Local\Temp\x"): 
    CreateProcess error=2, The system cannot find the file specified.
    
    

    Then check that you do not have double root paths after extracting the contents in step 1.

    Incorrect: C:phantomjs-2.1.1-windowsphantomjs-2.1.1-windowsbin

    Correct: C:phantomjs-2.1.1-windowsbin


    User Feedback

    Recommended Comments

    I still can't get the Pro Charts to work. I copy and pasted those values into both the Property Name and Value fields. I get the error message saying can't run the phantomjs.exe line because it can't find it in C:Users...AppDataLocal|Temp directory. Why would it look there?

    Edit: I read that I also need require.js installed? I went to "https://community.jaspersoft.com/wiki/custom-visualization-component-v60x-how-run-samples" but still can't get the Pro Charts to work. Any help would be appreciated. I downloaded phantomjs 2.1.1 if that makes any difference.

    Link to comment
    Share on other sites

    Preview using Widgets Pro is unable to render.  Need assistance to render properly.  Preview pane displays [Fusion Component Not Supported] when using Chart, Table, or Widget.  Completed the same procedure as the user above.  

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...