Thank you very much!!!! 2010/2/19 Sylvain <[email protected]>
> I think it's easier not to use a lib for Google Chart. > Each time I tried to use one, I spent a lot of time to understand / > debug it. > > There is a good example how to use GChart from scratch here : > http://gpxplot.googlecode.com/svn/trunk/gpxplot.py > > And there is a perfect func to generate extended data : > > def google_ext_encode(i): > """Google Charts' extended encoding, > see http://code.google.com/apis/chart/mappings.html#extended_values > """ > enc='ABCDEFGHIJKLMNOPQRSTUVWXYZ' > enc=enc+enc.lower()+'0123456789-.' > i=int(i)%4096 # modulo 4096 > figure=enc[int(i/len(enc))]+enc[int(i%len(enc))] > return figure > > I think this is the only thing you need. > > > On Feb 19, 10:39 pm, nickmilon <[email protected]> wrote: > > I have taken a look in the library. > > > > It seems it imports the following python packages > > > > import os > > import urllib > > import math > > import random > > import re > > > > Now I am not sure it will work on GAE since as far as I know math is a > > wraper around c math and this is no no in GAE. > > Hope some body else who is more familiar with the above libraries can > > advice. > > > > Happy coding ;-) > > > > Yes in your PC - follow the instructions of the library for that so > > you ca test it with the local server. > > Also include the whole library on your project files so it will be > > uploaded in GAE. > > > > On Feb 19, 10:21 pm, nickmilon <[email protected]> wrote: > > > > > Yes in your PC - follow the instructions of the library for that. > > > Later on I will take a look at the library my self. > > > > > On Feb 19, 1:09 pm, Massimiliano <[email protected]> > > > wrote: > > > > > > "Sure you can after installing the library" on my PC? > > > > > > 2010/2/19 nickmilon <[email protected]> > > > > > > > Sure you can after installing the library and including the files > in > > > > > your application provided this library does not depend on anything > but > > > > > python. > > > > > Also since data passing mechanism for google visualization api is > > > > > quite easy to implement in python you can avoid the burden of one > more > > > > > import and write your own interface. > > > > > For an example of using visualization api from gae you can take a > look > > > > > at: http://www.geognos.com/geo/en/cc/no.html#Economy > > > > > Unfortunately i did not have the time to document the code but feel > > > > > free to examine the page source code and the relative javascript > > > > > files. > > > > > > > Happy coding;) > > > > > > > On Feb 18, 2:30 pm, Massimiliano <[email protected]> > > > > > wrote: > > > > > > Dear All, > > > > > > I'm trying to learn using python and Google App Engine. Can I use > this > > > > > > library on the appengine? Just importing this in the python > application > > > > > > (from pygooglechart import *****)? > > > > > > > > Massimiliano > > > > > > > > -- > > > > > > > > My email: [email protected] > > > > > > My Google Wave: [email protected] > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups > > > > > "Google App Engine" group. > > > > > To post to this group, send email to > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<google-appengine%[email protected]><google-appengine%2Bunsubscrib > [email protected]> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-appengine?hl=en. > > > > > > -- > > > > > > My email: [email protected] > > > > My Google Wave: [email protected] > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- My email: [email protected] My Google Wave: [email protected] -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine?hl=en.
