Jump to content
We've recently updated our Privacy Statement, available here ×
  • Incorrect Extra Axis Lines in PDF output of Charts Pro


    asimkin
    • Features: Charts, Exporters Version: v7.1 Product: JasperReports® Server

    Issue Description

    Customer developed a JRXML report with Charts Pro component.

    When the report runs in JasperReports Server, output looks good, per requirements.

    However, when the report exported to PDF format, it shows some extra axis lines, please refer to printscreen.

    reportoutput.png.bb8bb45ddf9726c05a23321c5ba665a8.png

    How to fix the issue?


    Resolution

    The lines, displayed in PDF output, are so-called divisional lines:

    https://www.fusioncharts.com/dev/chart-guide/chart-configurations/div-lines-and-grids

    In order to remove/hide them in PDF, try to specify the following settings in 'Divisional Lines and Grids' menu of the chart settings:

    Num = 0

    Color = #FFFFFF

    Alpha = 0

    Please find attached printscreen:

    divlines_settings.png.508ae6ab11b9501f67ea13be35ef383a.png

    It might be possible that the properties seem to be already set.

    In that case try to change them to another value and then back to the provided one, to make sure the values are really saved,

    or manually modify report JRXML file and add required properties:

    <fc:chartProperty name="divLineColor">
        <fc:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fc:propertyExpression>
    </fc:chartProperty>
    <fc:chartProperty name="numDivLines">
        <fc:propertyExpression><![CDATA[new Integer(0)]]></fc:propertyExpression>
    </fc:chartProperty>
    <fc:chartProperty name="divLineAlpha">
        <fc:propertyExpression><![CDATA[new Integer(0)]]></fc:propertyExpression>
    </fc:chartProperty>

    Ref. Case 01597755

     

    reportoutput.png.971ce900310b68248090502af0631116.png

    divlines_settings.png.47f48952c7a803a443c2cf46e4c3a48d.png


    User Feedback

    Recommended Comments

    There are no comments to display.



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