Can't get interactive legend to work

48 views
Skip to first unread message

Algirdas Jokubauskas

unread,
Mar 31, 2014, 7:36:28 AM3/31/14
to gf...@googlegroups.com
Hi,

So, i've been trying to get an interactive legend to work in my project, it would just give me an error when i used a checkbox. So I even tried copying over the example code - the one with Vancouver and Ottawa temperatures. And it gives me the same error.

What could be the problem here? Am I not seeing something?


SEVERE: Exception caught: Exception caught: (TypeError) @com.googlecode.gflot.client.jsni.Plot::create(Lcom/google/gwt/dom/client/Element;Lcom/google/gwt/core/client/JsArray;Lcom/googlecode/gflot/client/options/PlotOptions;)([JavaScript object(5593), JavaScript object(6340), JavaScript object(5553)]): $wnd.jQuery.plot is not a constructor: com.google.gwt.event.shared.UmbrellaException: com.google.gwt.core.client.JavaScriptException: (TypeError) @com.googlecode.gflot.client.jsni.Plot::create(Lcom/google/gwt/dom/client/Element;Lcom/google/gwt/core/client/JsArray;Lcom/googlecode/gflot/client/options/PlotOptions;)([JavaScript object(5593), JavaScript object(6340), JavaScript object(5553)]): $wnd.jQuery.plot is not a constructor

Nicolas Morel

unread,
Mar 31, 2014, 12:09:47 PM3/31/14
to gf...@googlegroups.com
$wnd.jQuery.plot is not a constructor

Are you using a particular configuration of gflot ? It's like the flot scripts have not been loaded when you call the constructor.
Does it work with a simple plot ? 

Algirdas Jokubauskas

unread,
Apr 1, 2014, 2:50:55 AM4/1/14
to gf...@googlegroups.com
The plot themselves work, i can see everything properly, but as soon as I click the checkbox i get this error message and nothing changes.

Algirdas Jokubauskas

unread,
Apr 1, 2014, 6:54:29 AM4/1/14
to gf...@googlegroups.com
OK, I reverted back to 3,0,2, it asked me to add unimplemented methods which were addRedrawHandlers and some others and it started working, so either I'm supposed to use it differently or there is something else. Not sure. Maybe the example is not up to date.


On Monday, March 31, 2014 6:09:47 PM UTC+2, Nicolas Morel wrote:
Reply all
Reply to author
Forward
0 new messages