Jump to content
We've recently updated our Privacy Statement, available here ×

Axis label showing full upon mouse hover


gabrecords
Go to solution Solved by kkriplani,

Recommended Posts

Is it possible to achieve this (example http://jsfiddle.net/a6zsn/70/) in jaspersoft Studio HTML 5 chart? Refer to the jsfiddle chart, and hover your mouse pointer Africa is the best place.. and it shows a full description tool tip.

Is yes, how do i do it cause i can't find a way to do it in Edit Chart Properties > Show Advanced Options

Thanks a lot in advance

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi,
Yes, But not exactly the same.
Something very similar is possible.
Possibility: The label along the axis will be limited to a specific number of letters (including spaces) but upon hovering over the bar chart, the tooltip will display the complete name/value.

Let me know if you need help doing the same.
Regards,
KKriplani.

Link to comment
Share on other sites

  • Solution

Alright.
Follow these steps;
1) Stop tomcat.
2) At the path; <tomcat-directory>webappsjasperserver-proWEB-INFclasses
   add the property anywhere in the file, jasperreports.properties as stated below;
               com.jaspersoft.jasperreports.highcharts.function.properties.allowed=true

3) Delete work and temp folder from the tomcat-directory and restart tomcat.
4) Now using ireport designer / jaspersoft studio, set the advanced property for the chart as;
              
                              xAxis.labels.formatter    (Use an expression)
                            "function(){return this.value.toString().substring(0, 5);}"

Substring.PNG.0f280a45c2314699930b6609a05541b7.PNG

 

Here, I am displaying just the first 5 letters of the X Axis label, you can modify as per your choice.

Regards,
KKriplani

 

 
Link to comment
Share on other sites

Hi,
As I said earlier, this isnt possible as per my knowledge. But however you can view the complete name in the tooltip.
I had the same requirement as yours earlier but I had to settle down for the one mentioned above.

If I get to know any further, I will let you know and you please do the same :)
Also please mark the appropriate answers right as they will close the thread and help others get the best answer to the similar requirement.

Regards,
KKriplani.

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