Hi I am running my web app in development mode on chrome 13.0.782.107
I am using smartgwt 2.5.
Here is the code of my chart
Now when I try to run this code, the following error is generated.
When I change the value from 0 to non zero values the error does not occur
So this works perfectly fine
Please let me know why that error occurs only for "0" values. If I missed out on something which you need to know to answer this, please let me know.
Thanks in advance.
I am using smartgwt 2.5.
Here is the code of my chart
Code:
chart = new FacetChart(); chart.setTitle("Ratio"); chart.setChartType(ChartType.PIE); chart.setValueProperty("Count"); chart.setFacets(new Facet("State","State")); Record chartRecHigh = new Record(); Record chartRecMed = new Record(); Record chartRecLow = new Record(); chartRecHigh.setAttribute("Count", 0); chartRecMed.setAttribute("Count", 0); chartRecLow.setAttribute("Count", 0); chart.setData(new Record[]{chartRecHigh,chartRecMed,chartRecLow});
Code:
11:32:17.930 [ERROR] [myconsole] 11:32:17.334:TMR2:WARN:DrawRect:isc_DrawRect_82:Error: NOT_SUPPORTED_ERR: DOM Exception 9 [No error.stack available] com.smartgwt.client.core.JsObject$SGWT_WARN: 11:32:17.334:TMR2:WARN:DrawRect:isc_DrawRect_82:Error: NOT_SUPPORTED_ERR: DOM Exception 9 [No error.stack available] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) 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:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662)
So this works perfectly fine
Code:
chartRecHigh.setAttribute("Count", 1); chartRecMed.setAttribute("Count", 1); chartRecLow.setAttribute("Count", 1);
Thanks in advance.
Comment