Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to Utilize plotLines Feature in Ad Hoc Chart


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

    Use case

    Customer created an Ad Hoc Chart and wants to utilize plotLines feature available in Highcharts library.


    Resolution

    Highcharts' plotLines is an array of objects represinting plot lines on a axis:

    https://api.highcharts.com/highcharts/yAxis.plotLines

    In order to utilize plotLines in Ad Hoc Chart designer, you need to go to 'Chart Format' menu, 'Advanced' tab and manually type yAxis.plotLines property name and array of objects escaped in double-quotes as a value, e.g.:

    [
        {
            "color":"red",
            "value":"2000",
            "width":"2",
            "dashStyle":"longdashdot"
        },
        {
            "color":"yellow",
            "value":"5000",
            "width":"2",
            "dashStyle":"longdashdot"
        },
        {
            "color":"green",
            "value":"7000",
            "width":"4",
            "dashStyle":"solid"
        }
    ]
    

    Please refer to printscreen

    adhocchart_plotlines.png.9eca7cdd71c559148fbf0c099c61e091.png

    Please note that "width" property must be specified explicitly otherwise default value (undefined) is applied and the line is not visible

    Solution tested with TIBCO JasperReports® Server v.7.1.0


    Ref. Case 01637993

    adhocchart_plotlines.png.4e8f79d52528e5dee5313e10908dea27.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...