Hello,

I'm creating a chart thanks to the jqplot plugin, which depends of the
JQuery library.
>From the jqPlot website I try to implement the simple following
example :

        public native void createChart() /*-{
                line1 = [1,4,9, 16];
                line2 = [25, 12.5, 6.25, 3.125];

                plot1 = $.jqplot('chart1', [line1, line2], {
                legend:{show:true, location:'ne'},title:'Bar Chart',
                series:[
                        {label:'Profits', renderer:$.jqplot.BarRenderer},
                        {label:'Expenses', renderer:$.jqplot.BarRenderer}
                ],
                axes:{
                        xaxis:{renderer:$.jqplot.CategoryAxisRenderer},
                        yaxis:{min:0}
                }
                });
        }-*/;

Using the MVP pattern, I need to attach this chart in my view. So I
can't use $wnd.$, I have to find another solution.
Maybe I can use the JavaScriptObject class but it's not compatible
with the Widget that I must use with the view.
Do you have an idea about how have I to proceed ?

Thanks a lot for your help.
Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to