Jump to content

Is it possible to miss out some X-axis labels?


cameron.urquhart_1

Recommended Posts

Hi,

Currently I have a number of graphs, and I am basing these off a report made using different software. Along the bottom I have dates (which are actually stored as strings) however I am showing a range  of three months, meaning there's about 90 dates along the bottom, and they're very overlapped and unreadable. Is there a way to stagger which ones are displayed?

I tried implementing this bit of XML: "<property name="net.sf.jasperreports.chart.range.axis.tick.interval" value="1"/>" which seems to be the most common answer online for how to approach this, however when I include this, for any number put in the 'value' section, my x-axis remains the same, and the values on my y-axis dissapears completely.

If anyone has any idea how to approach this it would be much appreciated.

Kind Regards,

Cameron

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You will have to implement a custom ChartCustomizer for that. I've done something similar several years ago when I had too much dates overlapping on x-axis and I just wanted to display some of them (e.g.) weekly but without loosing the tick marks itself.

So the blog entries from MDahlmann could probabely help! :-)

https://mdahlman.wordpress.com/2011/04/17/chart-customizers-2/  or https://mdahlman.wordpress.com/2010/08/18/chart-customizers-1/

hth + regards

C-Box

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