gabrecords Posted April 26, 2016 Share Posted April 26, 2016 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 OptionsThanks a lot in advance Link to comment Share on other sites More sharing options...
kkriplani Posted April 26, 2016 Share Posted April 26, 2016 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 More sharing options...
gabrecords Posted April 26, 2016 Author Share Posted April 26, 2016 Yes, That's exactly what i have in mind KKriplani :) I've been wracking my brain trying to achieve something similar in jasper studio html 5 chart Hopefully you can offer me guidance. Thank you Link to comment Share on other sites More sharing options...
Solution kkriplani Posted April 26, 2016 Solution Share Posted April 26, 2016 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=true3) 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);}" 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 More sharing options...
gabrecords Posted April 26, 2016 Author Share Posted April 26, 2016 Hi many thanks KKriplani, that function works in limiting the x Axis label. However, how do i make it show the full label when i hover my mouse pointer over the x axis label? Appreciate your feedback :) Link to comment Share on other sites More sharing options...
kkriplani Posted April 27, 2016 Share Posted April 27, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now