Re: Urgent help in GWT-Visualization

2010-01-21 Thread Brij Mohan
try out the faq

http://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apist=VisualizationFAQ

On Tue, Jan 19, 2010 at 4:37 PM, Ramya Devi Dharmarajan 
dramyadevi2...@gmail.com wrote:

 Hi,

  I have a problem in my below code.Please share your thoughts.This is
 Urgent.

 Code :

 *Sample.java*

 TimeLine timeLine =
 *new* TimeLine();

 VisualizationUtils.*loadVisualizationApi*(timeLine, AnnotatedTimeLine.
 *PACKAGE*);

 widget = timeLine.getAnnotatedChart();

 *TimeLine.java:*
 *

 public
 * Widget getAnnotatedChart(){

 widget = *new* AnnotatedTimeLine(getData(), getOption(), 700px, 240px);


 *return* widget;

 }

 *private* AnnotatedTimeLine.Options getOption()

 {

 AnnotatedTimeLine.Options options = AnnotatedTimeLine.Options.*create*();

 options.setDisplayAnnotations(
 *true*);

 *return* options;

 }

 *private* AbstractDataTable getData()

 {

 DataTable data = DataTable.*create*();

 data.addColumn(AbstractDataTable.ColumnType.
 *DATE*, Date);

 data.addColumn(AbstractDataTable.ColumnType.
 *NUMBER*, First Label);

 return data;

 }

 But i got the below exception.

 Uncaught exception escaped : -

 [ERROR] Uncaught exception escaped
 com.google.gwt.core.client.JavaScriptException: (TypeError):
 '$wnd.google.visualization.DataTable' is null or not an object
  number: -2146823281
  description: '$wnd.google.visualization.DataTable' is null or not an
 object
  at com.google.gwt.visualization.client.DataTable$.create(Native Method)
  at org.soh.doh.ui.client.util.TimeLine.getData(TimeLine.java:39)
  at org.soh.doh.ui.client.util.TimeLine.getAnnotatedChart(TimeLine.java:28)
  at
 org.soh.doh.ui.client.gui.panel.PublicVisualization.EDVisitsbySyndrome.setTimeSeriesLine(EDVisitsbySyndrome.java:144)
  at
 org.soh.doh.ui.client.gui.panel.PublicVisualization.EDVisitsbySyndrome.init(EDVisitsbySyndrome.java:79)
  at org.soh.doh.ui.client.mvc.CenterView.handleEvent(CenterView.java:69)
  at
 com.extjs.gxt.ui.client.mvc.Controller.forwardToView(Controller.java:90)
  at
 org.soh.doh.ui.client.mvc.CenterController.handleEvent(CenterController.java:111)
  at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:236)
  at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:164)
  at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:174)
  at com.extjs.gxt.ui.client.mvc.Dispatcher.forwardEvent(Dispatcher.java:81)
  at org.soh.doh.ui.client.mvc.WestView$4.handleEvent(WestView.java:264)
  at org.soh.doh.ui.client.mvc.WestView$4.handleEvent(WestView.java:1)
  at
 com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:176)
  at
 com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:96)
  at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:444)
  at
 com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:762)
  at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320)
  at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299)
  at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)










 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 

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.



Urgent help in GWT-Visualization

2010-01-19 Thread Ramya Devi Dharmarajan
Hi,

 I have a problem in my below code.Please share your thoughts.This is
Urgent.

Code :

*Sample.java*

TimeLine timeLine = *new* TimeLine();

VisualizationUtils.*loadVisualizationApi*(timeLine, AnnotatedTimeLine.*
PACKAGE*);

widget = timeLine.getAnnotatedChart();

*TimeLine.java:*
*

public* Widget getAnnotatedChart(){

widget = *new* AnnotatedTimeLine(getData(), getOption(), 700px, 240px);

*return* widget;

}

*private* AnnotatedTimeLine.Options getOption()

{

AnnotatedTimeLine.Options options = AnnotatedTimeLine.Options.*create*();

options.setDisplayAnnotations(*true*);

*return* options;

}

*private* AbstractDataTable getData()

{

DataTable data = DataTable.*create*();

data.addColumn(AbstractDataTable.ColumnType.*DATE*, Date);

data.addColumn(AbstractDataTable.ColumnType.*NUMBER*, First Label);

return data;

}

But i got the below exception.

Uncaught exception escaped : -

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.google.visualization.DataTable' is null or not an object
 number: -2146823281
 description: '$wnd.google.visualization.DataTable' is null or not an object
 at com.google.gwt.visualization.client.DataTable$.create(Native Method)
 at org.soh.doh.ui.client.util.TimeLine.getData(TimeLine.java:39)
 at org.soh.doh.ui.client.util.TimeLine.getAnnotatedChart(TimeLine.java:28)
 at
org.soh.doh.ui.client.gui.panel.PublicVisualization.EDVisitsbySyndrome.setTimeSeriesLine(EDVisitsbySyndrome.java:144)
 at
org.soh.doh.ui.client.gui.panel.PublicVisualization.EDVisitsbySyndrome.init(EDVisitsbySyndrome.java:79)
 at org.soh.doh.ui.client.mvc.CenterView.handleEvent(CenterView.java:69)
 at com.extjs.gxt.ui.client.mvc.Controller.forwardToView(Controller.java:90)
 at
org.soh.doh.ui.client.mvc.CenterController.handleEvent(CenterController.java:111)
 at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:236)
 at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:164)
 at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:174)
 at com.extjs.gxt.ui.client.mvc.Dispatcher.forwardEvent(Dispatcher.java:81)
 at org.soh.doh.ui.client.mvc.WestView$4.handleEvent(WestView.java:264)
 at org.soh.doh.ui.client.mvc.WestView$4.handleEvent(WestView.java:1)
 at
com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:176)
 at
com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:96)
 at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:444)
 at
com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:762)
 at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320)
 at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299)
 at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)
-- 

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.