Hello:
I updated the widget and remove the dynamic sample.
Now you can use PlotKit() without burden code.
In this version, I brought you a EasyPlot() widget.
Now you can easily plot a diagram within the code.
in controllers.py:
from plotkit import EasyPlot
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]]
sample = [[0,0], [1,1], [2,4], [3,8], [4,7], [5,20]]
return dict(ep= EasyPlot(id="shit",style="line",
width="300", height="300",
data=data, sample=sample))
in welcome.kid:
<body>
${ep.display()}
</body>
Watch the usage in Widget Browser!
any comment are welcome.
--
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---