Clarity

Expand all | Collapse all

Graph in Jaspersoft sort the Y Axis (string values)

Jump to Best Answer
  • 1.  Graph in Jaspersoft sort the Y Axis (string values)

    Posted 02-19-2016 02:05 AM

    Hi,

     

    I created via a custom Domain a nice Bar Graph with 3 fields.

    So far so good, but I would like to (custom) sort the Y-Axis.

     

    I've got 4 values on the Y axis , High, Medium, Low and N/A

    Only the graph displays:

    High

    Low

    Medium

    N/a

     

    I would off course display this as:

    High

    Medium

    Low

    N/a

     

    I already tryed to open the report in studio (build in de UI) and apply sort Fields. On both fields included (the key and the value)

    But it does not change the sequence.

     

    How do I have to do this?



  • 2.  Re: Graph in Jaspersoft sort the Y Axis (string values)
    Best Answer

    Posted 03-23-2016 07:57 AM

    I sorted it out this is not possible via the UI. Also import in studio and change it is not easily done.



  • 3.  Re: Graph in Jaspersoft sort the Y Axis (string values)

    Posted 04-12-2016 09:11 AM

    Hi Elwin,

     

    in the Jaspersoft Studio, you can set a Comparator Expression which refers to a Java function implementing the java.util.Comparator interface.

     

    Is this what you were looking for?

     

    Kind regards

    Georg