simplyvikram / google-chartwrapper

Automatically exported from code.google.com/p/google-chartwrapper
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Axes.label does not produce results expected #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?

1. running the Line Example mentioned on the example page

What is the expected output? 
------------------------------
http://chart.apis.google.com/chart?
chxt=x,y&chs=300x150&chd=s:helloWorld&chxl=0:|0|Mar|Apr|May|June|July|1:|1|
None|50+Kb&cht=lc&chls=6.0,5.0,2.0&chco=ff0000

What do you see instead?
---------------------------
http://chart.apis.google.com/chart?
chxt=x,y&chs=300x150&chd=s:helloWorld&chxl=0:|Mar|Apr|May|June|July|1:|None
|50+Kb&cht=lc&chls=6.0,5.0,2.0&chco=ff0000

Note the difference between 
0:|0|Mar|Apr|May|June|July
and
0:|Mar|Apr|May|June|July

you may want to look at the label() method in Axis Class.

Thanks
Faiyaz

Original issue reported on code.google.com by faiy...@gmail.com on 24 Mar 2008 at 7:05

GoogleCodeExporter commented 9 years ago
I looked at the API and it does not look like that "double id" output would 
work,
adding 0 as a label.

Original comment by justquick on 24 Apr 2008 at 10:04

GoogleCodeExporter commented 9 years ago

Original comment by justquick on 14 Jun 2008 at 9:10

GoogleCodeExporter commented 9 years ago
Axes stuff is tricky and has been revamped in v0.8 which fixes this interface
problem. Heres how it would work:

{% chart  Line  hX1xPj   %}
{% axes type xy  %}
{% axes label 0 Mar  Apr  May  June  July  %}
{% axes label 1 None  50+Kb  %}

Original comment by justquick on 3 May 2009 at 8:58