Tuesday, January 13, 2009

Google Chart api issues

While working out graphs with Google chart api, We couldnt find ways render some of things properly, we used workaround in some cases.

1) Legends positioning
We couldnt find a parameter using which we can specify distance between legend and x-axis.



workarounds we used:
rendering legends using html


2) Legends ordering

Google is not rendering the legends as per order we give in url. looks like it orders
them alphabetically.



workaround we used:
rendering legends using html

3) Labeling issues
2 issues here
a) when bar is of full lenth, label overlaps bar
b) how to specify space between label and bar.




No workaround

4) length of Y axis
y-axis in not inheriting length of graph.



workaround we used:
use different margins as per number of bars. chbh=25,10,30
using 300 instead of 30 works.

No comments: