Maram wrote:
> HI,
>
> but how pass it in EasyPlot(id="diag", style="bar", width="300",
> height="300",data=[setA, ])  ?
>

Maram:
You can pass "option" params to EasyPlot(). You can glance the usage in
Toolbox Widget browser.


class EasyPlotDesc(WidgetDescription):
    name = "EasyPlot"
.....

    option = """{"xTicks": [{v:0, label:"zero"},
                            {v:1, label:"one"},
                            {v:2, label:"two"},
                            {v:3, label:"three"},
                            {v:4, label:"four"},
                            {v:5, label:"five"}]}"""
    .......
    for_widget = EasyPlot(option= option,data=data)


Or you can use "PlotKit" class to include required Javascripts and use
the website scripts on your templates.


--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to