Bug using chxr and chbh together

41 views
Skip to first unread message

sly

unread,
Oct 14, 2009, 5:41:17 AM10/14/09
to Google Chart API
Hi people,

I found a bug that when you use chxr in a bar chart while setting
chbh, the axis wouldn't be correctly displayed.

Like this one:
http://chart.apis.google.com/chart?chxt=x,y&chxr=1,0,180&cht=bvg&chd=s:c9uDc&chco=76A4FB&chls=2.0&chs=200x100&chbh=r,0.5,0.5

As you can see, I set y axis to the range of [0, 180], but the chart
reads 0 to 150, but the data is correct if the axis range from 0 to
180.
But if the optional parameter 'interval' is set, the axis labels
will display correctly:

http://chart.apis.google.com/chart?chxt=x,y&chxr=1,0,180,50&cht=bvg&chd=s:c9uDc&chco=76A4FB&chls=2.0&chs=200x100&chbh=r,0.5,0.5

or ignore the chbh part, it will be ok:
http://chart.apis.google.com/chart?chxt=x,y&chxr=1,0,180&cht=bvg&chd=s:c9uDc&chco=76A4FB&chls=2.0&chs=200x100

Will it be possible to fix that? Thanks.


She Li Yu
Reply all
Reply to author
Forward
0 new messages