Jump to content

yhhs09
Go to solution Solved by kashoory,

Recommended Posts

Hi

Can anyone help me concerning the html5 chart(highchart) in jasper ireport? The issues is that I managed to create multiple yAxis using just a column chart and using Groovy Language in the html5 chart by using the chart property and value as below:

</hc:chartProperty>

<hc:chartProperty name="yAxis">

<hc:propertyExpression><![CDATA[java.util.Arrays.asList(

(""),

("")  

 )]]></hc:propertyExpression>

But I still don't know how to input the yAxis properties such as "yAxis.title", "yAxis.max", etc. I still think that it is possible to modify the yAxis using the above code.

Link to comment
Share on other sites

  • 11 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

It's a bit late I know, but I just answer in case that someone else gets to this page with the same question!


 


In Jasper Studio Professional 5.6.1:


Double click on the chart. Press the button "Show Advanced Properties". Select the tab "Context specific".


Press "Add" and select yAxis from the "Name". 


Add different yAxis for your y-axes and assign different _jrAxisIndex to them.


For each yAxis add a property "id" and assign a unique string to it.


Now you can customise every yAxis separately by adding properties like min, max, etc.


 


It is the time to assign yAxis to measures:


Go to Configuration, select a measure, using "Advance propertis" add a contributor "SeriesProperty", with property name "yAxis", in constant value type string id (without quote) of the yAxis you want to use for the measure (you already set this id in previous step).


Do it for all measure to assign them to the right axis.


 


I hope it helps!


 


Keivan


Link to comment
Share on other sites

  • 1 year later...
  • 7 months later...

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