Menu

Error on initializating the lib with Highcharts v.3.0.2+

Gilberto
2013-08-17
2013-09-01
  • Gilberto

    Gilberto - 2013-08-17

    Hi,

    When using the Highcharts javascript lib v.3.0.2 or above, the GWT Highcharts doesn't load (either 1.6.0 and 1.5.0). This is also true using the the last Highcharts (version 3.0.4) downloadable from the project Files page.

    When creating any chart, or simply initializating the engine with common values, such as:

    Highcharts.setOptions(new Highcharts.Options().setGlobal(new Global().setUseUTC(false)));
    

    I got his error:

    com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)([JavaScript object(208), JavaScript object(207), JavaScript object(241)]): $wnd.Highcharts.setOptions is not a function
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
        at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Thread.java:724)
    

    It works as expected with Highcharts 3.0.1.

    Is there anything that can be done as workaround to make it work for the last version of Highcharts? Or is it just a bug for now?

    Thanks.

     
  • Gilberto

    Gilberto - 2013-08-24

    The issue occurs with Highcharts 3.0.5 as well, released today/yesterday, depending on your timezone.

    Am I the only one having this problem? With no comments so far, I'm feeling lonely here.

     
  • Gilberto

    Gilberto - 2013-09-01

    Just found the error: it was the jQuery version I was using. Updating it to 1.10.2 solved the problem.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.