Maram escribió:
> I change the code in controllers, but the graph in the web page is empty.
>
> class Root(controllers.RootController):
> @expose(template="wgtest.templates.welcome")
> def index(self):
> data = [[0,0], [1,2], [2,3], [3,7], [4,8], [5,6]]
> option='''{"xTicks":[{label: "zero", v: 0}, {label: "one", v:
> 1},{label: "two", v: 2}, {label: "three", v: 3},{label: "four", v:
> 4},{label: "five", v: 5}]}'''
> return dict(ep= EasyPlot(style="bar", option=option, data=data) )
-----------------------------------------------------------------^^^^^^
Sorry... I forgot that "data" is an array of arrays...
return dict(ep= EasyPlot(style="bar", option=option, data=[data] ) )
----------------------------------------------------------^^^^^^
the plotkit work very nice now!!
Thanks!
--
maram
http://maram.com.ar - http://geine.maram.com.ar
Ubuntu Linux User - TurboGears User
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---