Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

JSON.decode error with isc.FacetChart.create

$
0
0
SmartClient Version: v9.1p_2014-10-20/PowerEdition Deployment (built 2014-10-20)
IE-11
GWT 3.1

JSON.decode() throw and error when trying to use it with FacetChart. When I try to decode the following JavaScript:
Code:

isc.FacetChart.create({
    ID: "simpleChart",
    facets: [{
        id: "region",
        title: "Region"
    },{
        id: "product",
        title: "Product"
    }],
    valueProperty: "sales",
    chartType: "line",
    title: "Sales by Product and Region"
})

I get this error:
Code:

ERROR: Uncaught exception escaped
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(529), JavaScript object(528), JavaScript object(912)]): Unable to get property 'create' of undefined or null reference
        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:576)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
        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:356)
        at sun.reflect.GeneratedMethodAccessor63.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:745)


Viewing all articles
Browse latest Browse all 4756

Trending Articles