vctlzac Posted March 15, 2011 Share Posted March 15, 2011 Hello everyone,I'm trying a way to display only integer values ​​on the y axis (value), but I can not. The change should not be to round values ​​(mask value in #.###) but allowing display only integer values in axis value.Thanks. Link to comment Share on other sites More sharing options...
mdahlman Posted March 15, 2011 Share Posted March 15, 2011 You need a Chart Theme or a Chart Customizer.As you have noticed, a format mask doesn't help to solve this problem.Regards,Matt Link to comment Share on other sites More sharing options...
vctlzac Posted March 16, 2011 Author Share Posted March 16, 2011 Hi,Thanks for reply.Look the report example: http://img689.imageshack.us/i/examplexs.jpg/Post Edited by vctlzac at 03/16/2011 11:14 Link to comment Share on other sites More sharing options...
mdahlman Posted March 16, 2011 Share Posted March 16, 2011 It's unclear why you posted the sample.We already agree that the current behavior isn't what you want. You need a Chart Theme or a Chart Customizer.Regards,Matt Link to comment Share on other sites More sharing options...
vctlzac Posted March 16, 2011 Author Share Posted March 16, 2011 OK,And how do I get a chart theme or a chart costumizer ? Link to comment Share on other sites More sharing options...
szaharia Posted March 17, 2011 Share Posted March 17, 2011 Hi,Another posibility is to use custom properties. There are 2 configuration properties in JR which allow the user to set the desired tick interval on the range (or domain) axis:net.sf.jasperreports.chart.range.axis.tick.interval andnet.sf.jasperreports.chart.domain.axis.tick.intervalFor your needs, you could combine the tickLabelMask effect with the net.sf.jasperreports.chart.range.axis.tick.interval property, and it should work.Hope this helps, sandaCode:<barChart><chart ...> <reportElement ...> <property name="net.sf.jasperreports.chart.range.axis.tick.interval" value="1"/> </reportElement> ...</chart>...<barPlot isShowTickLabels="true"> ... <valueAxisFormat> <axisFormat tickLabelMask="#,##0"> ... </axisFormat> </valueAxisFormat></barPlot></barChart> Link to comment Share on other sites More sharing options...
omarntfs Posted March 19, 2013 Share Posted March 19, 2013 Hello everyone,net.sf.jasperreports.chart.range.axis.tick.interval works good but net.sf.jasperreports.chart.domain.axis.tick.interval doesn't work. any Help please.thanks in advance Link to comment Share on other sites More sharing options...
ragopalakrishnan Posted September 20, 2017 Share Posted September 20, 2017 I had the same issue with Stacked Bar Chart. Mine is Jasper Community Editionn 6.2.1.Able to fix the issue by using below property in <reportElement><property name="net.sf.jasperreports.chart.range.axis.tick.interval" value="1"/>my source code snippet<stackedBarChart> <chart evaluationTime="Report"> <reportElement x="3" y="4" width="547" height="310" uuid="437a72b9-4d07-40de-8497-358e8d904795"> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="net.sf.jasperreports.chart.range.axis.tick.interval" value="1"/> </reportElement> Hope this helps Link to comment Share on other sites More sharing options...
gjswan Posted September 20, 2019 Share Posted September 20, 2019 can i get a solution for the same issue for line chart as well?Its urgent 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