How to align tickmarks?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
plupp
Posts: 1
Joined: Fri Apr 23, 2010 9:17 am
antibot: No, of course not.

How to align tickmarks?

Post by plupp » Fri Apr 23, 2010 10:48 am

Hi,

I am using JFreeChart 1.0.13 and am trying to create an XYPlot chart. What I would like to do is to group the data by week. At the moment, I do this by grouping the data before adding it as a dataset. I set the key for a particular week to the Monday of that week. I add a DateTickUnit with type DAY, multiple 7, and the proper format for showing the week and year. This seems to work fine, except that the tick marks are not aligned with the data points (they align with the Thursdays and not the Mondays, in practice).

How can I make the tick marks align with the data points? Am I going about this the wrong way, perhaps? Any advice is highly appreciated.

Image

Locked