Problem with long x-axis label

A discussion forum for the Eastwood Chart Servlet.

Problem with long x-axis label

Postby Rtone » Tue Jul 29, 2008 9:00 am


First i want to thanks David for his very usefull API.

I have to use Eastwood to make an offline demo version of my webapp so i try to obtain as far as possible the same render than Google API without modification.

It works almost fine but i have a graphic bug with my x-axis because it's too long :

There's no problem with Google API.

Is it possible to fix it ?

Thanks a lot and sorry for my horrible english :)
Posts: 1
Joined: Tue Jul 29, 2008 8:43 am
Location: France

Postby david.gilbert » Tue Aug 12, 2008 11:03 am

One option to fix this would be to right align the right-most tick label instead of centering it on the tick mark. This would then require some other changes to ensure that the right-aligned label doesn't overlap with the preceding's tricky. I'll come back to this.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
JFreeChart Project Leader
Posts: 11664
Joined: Fri Mar 14, 2003 10:29 am

Re: Problem with long x-axis label

Postby nickl » Fri Feb 27, 2009 1:01 am

Same problem here, i'm using date for my label and half of the last one is hidden.

Another option to fix this is to apply margin (&chma=) but it's not implented yet :cry:
Posts: 1
Joined: Fri Feb 27, 2009 12:57 am

Re: Problem with long x-axis label

Postby miek » Wed Apr 08, 2009 2:25 pm

I was going to post about a new topic but I think my problem actually relates to this.

My x-label (in this case day of month) is currently wrapping so that instead of "30", it becomes "3" with a "0" below it. I guess the easiest way to fix this would be to reduce font size, but obviously 'chxs' (axis styles) has not been implemented yet? Is it so that currently my only option to set font size would be to do it using init-params?

Thanks for your help in advance, and for the great project!
Posts: 1
Joined: Wed Apr 08, 2009 1:49 pm

Return to Eastwood Chart Servlet

Who is online

Users browsing this forum: No registered users and 1 guest