Hello,
I am using TimeSeriesChart and my pattern for the tick label in the x axis is "MMM-dd-yyyy". But the last tick label in the x- axis shows only a part of it. For example "Jun-12-200". But the same code works fine for different number of series values ie. it gives the problem when there are 1 - 13 values in the series. If there are 14-16 values in a series, it works fine.
Can you please suggest me what I should do to get the full tick label? Do I need to override the refreshTicks() method ?? Or is there any easier way out.
Thanks a lot for the reply in advance
Regards,
Narayan
Last tick label not shown fully
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
This is a long standing bug. After I get the 1.0.6 release cleared away (I'm working some more on the documentation right now) and another little job I have to do, I'll have a look at this.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 20
- Joined: Tue Jan 16, 2007 1:54 pm
Cannot see complete tick label
Has this problem resolved in the latest version of JFreeChart? If yes what set of code have to write for the same?
Thanks,
Ashish
Thanks,
Ashish
Re: Last tick label not shown fully
Am currently using jfreechart-1.0.19.jar and yet the last tick labels not shown completely. The tick labels are just numbers. If it is a single digit, the label is fine, but if it is a double digit, a part of the units place digit is not shown properly. Any fix?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Last tick label not shown fully
This has been a long-standing issue in the JFreeChart axes and there is no fix at present. The only workaround is to add additional insets to the right side of the plot to make room for the label to display (not ideal).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: Last tick label not shown fully
Thanks David, I have used the work around suggested by you(using insets)
plot.setInsets(new RectangleInsets(0, 0, 0, 15));
That served my purpose.
plot.setInsets(new RectangleInsets(0, 0, 0, 15));
That served my purpose.