Jump to content
We've recently updated our Privacy Statement, available here ×

How can I customize line chart and tick labels with jrxml for jasper and java?


j.anter

Recommended Posts

I have, for example, following data (time series) for the output:

2013-12-18         6             1             58           58           5             15           NULL
2014-01-07         6             1             58           58           5             15           NULL
2014-01-08         6             1             58           58           5             15           NULL
2014-01-10         22           1             58           58           NULL     NULL     NULL
2014-01-15         58           11           58           58           2             15           NULL
2014-01-17         13           2             58           58           5             15           NULL
2014-02-11         11           2             58           58           5             15           NULL

Currently, the chart looks like this.

00_current_chart130214.png.4118217651667bb2da9cb481acf5f7f3.png

I want the X-axis divided by the exact day from 2013-12-1 to 2014-2-28 and then I enter the values ​​for the 2013-12-18, 2014-1-7,...2014-2-11.

I then want to label on the x-axis the 15 with 2013-12, the 46 with 2014-01 and the 76 with 2014-02. Therefore I want to set 2013-12-1 to 0 and
2014-2-28 to 90 (31d+31d+28d). I would also like that the dots are connected before and after the gap.

It would be nice if it looks like this:

000_thats_it.jpg.568e3ea7355599b5154b59b997a174ce.jpg

 

Is it possible to do it?

Thank you for your help.

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 5 years later...

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