no API documentation?

61 views
Skip to first unread message

Tobin Coziahr

unread,
Feb 8, 2009, 6:20:12 AM2/8/09
to pygoog...@googlegroups.com
I've got a text file full of "date number" rows, where I want to chart
a data point over time. I was looking at the sample code for
pygooglechart where there are samples that have months hard coded for
the X axis at the bottom, but I don't see any way for me to add a
series of date and # data points, and have the axes auto-generated
based on this data.

Is there any sort of documentation of the API other than the sample
code? Or do I pretty much have to read through the pygooglechart
source in order to find a way to do this? Or is this even possible?

Thanks much.

-Tobin

Andy

unread,
Feb 9, 2009, 1:45:42 PM2/9/09
to Python Google Chart
Hi,

maybe your looking for this:

import pygooglechart as gc
lc = gc.SimpleLineChart(440,220)
lc.set_title('Test Chart')

#data
lc.add_data([1,25,99,50,30])

#labels
lc.set_axis_labels(gc.Axis.BOTTOM,
['23.67.2883','29.34.1232','54.23.7864','42.39.1188','29.36.2003'])
print(lc.get_url())
lc.download('test.png')
I digged through the code too because I didn't find any documentation.

Andy
>
> Thanks much.
>
> -Tobin

ghee22

unread,
Apr 13, 2012, 9:01:28 AM4/13/12
to pygoog...@googlegroups.com
I second this request for API documentation.
Reply all
Reply to author
Forward
0 new messages