To support multiple bars in a chart with a time axis, I had to change the dataset to the new TimeTableXYDataset structure. But now the time axis shows the labels shifted to the right! I.e. the tick for February now displays "January", etc. :(
The values are
But the tick label for the second value (105.7) was "December 08" instead of "January 09"!
I browsed the Month.class of JFreeChart and see lots of +1 / -1 changes of month values.
I had to workaround this with a special case when using the Month period by adding 1 month for each date :?
After this workaround, the second value (105.7) then correctly shows "January 09", with trailing labels also correctly shifted backwards.
Log in to post a comment.