993124727 Posted May 11, 2016 Share Posted May 11, 2016 I want to create a bar chart. i used category bar model. when date range is 2015-01-01 to 2016-06-01. Then i choose the date string for example 2015-01-01 to be category key. How can i let domain axis tick lable show as JAN FEB APR MAR MAY JUN JUL AUG SEP OCT NOV DEC JAN FEB MAR APR MAY JUNMeans edit category tick label expression to repeat category tick label. how can i do it. Need help. Thanks in advance.(,,•́ . •̀,,) Link to comment Share on other sites More sharing options...
harisha.vasamsetty_1 Posted May 11, 2016 Share Posted May 11, 2016 Hi,Even I have similar issue. Any updates on this? Link to comment Share on other sites More sharing options...
sadakar Posted May 11, 2016 Share Posted May 11, 2016 I hope below example helps you to get month nameshttp://community.jaspersoft.com/blog/tip-get-prvious-and-next-months-month-names-jasper-reports Link to comment Share on other sites More sharing options...
993124727 Posted May 12, 2016 Author Share Posted May 12, 2016 not yet. how about you? Link to comment Share on other sites More sharing options...
993124727 Posted May 12, 2016 Author Share Posted May 12, 2016 I have viewed the example. But seems not similar with my requirements. What i want is to show repeat category tick label in domain axis range. Do you have any idea? Link to comment Share on other sites More sharing options...
szaharia Posted May 16, 2016 Share Posted May 16, 2016 Hi,In case your report is based on JFreeCharts, try with an xyBarChart instead of simple barChart, and set tickLabelMask="MMM" for the axisFormat in the categoryAxisFormat element. An useful example can be found in the JR charts sample (see the XYBarChartTimeSeriesReport.jrxml file in the /demo/samples/charts/reports/ directory in the src distro).I hope this helps,Sanda 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