Jump to content

JASPER bar chart problem,how to show repeat category tick label


993124727

Recommended Posts

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 JUN

Means 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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

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

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