Ah, good idea.  For anyone reading and not looking at the URLs in
detail, the trick Julien suggested is to specify the X axis label
position explicitly at 50% of the way across in the case where there
is only one label by adding the following, if there is only one bar:

  &chxp=0,50.0&chxr=0,0.0,100.0

(assuming chxt=x,...) to the address.

daniel

On Mar 5, 10:11 am, JMan <[email protected]> wrote:
> Hi Dan.
>
> You may have found a bug, but there is an easy workaround:http://is.gd/lWCi
>
> Hope that helps.
>
> (If possible, please post long URLs as tinyurls or is.gd, like above.
> Mysteriously, the Google Groups software does not properly deal with
> long links.)
>
> -Julienhttp://charts4j.googlecode.com
>
> On Mar 5, 9:16 am, Dan <[email protected]> wrote:
>
> > There seems to be a bug with the positioning of X-axis labels for bar
> > charts when there is only 1 bar being displayed.
>
> > This can be demonstrated by taking one of the labeled bar charts from
> > the API docs:
>
> >http://chart.apis.google.com/chart?chxt=x,y,r,x&chxl=0:|Jan|July|Jan|July|Jan|2:|A|B|C|3:|2005||2006||2007&cht=bvs&chd=s:c9uDc&chco=76A4FB&chls=2.0&chs=200x125&chbh=r,0.3
>
> > and removing all but one of the data points (chd):
>
> >http://chart.apis.google.com/chart?chxt=x,y,r,x&chxl=0:|Jan|July|Jan|July|Jan|2:|A|B|C|3:|2005||2006||2007&cht=bvs&chd=s:c&chco=76A4FB&chls=2.0&chs=200x125&chbh=r,0.3
>
> > In the second case, the X-axis label "Jan" is placed against the left
> > margin, rather than in the center of the bar.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to