Tuesday, January 24, 2012

GWT , Highcharts not working

I am trying to run a simple High chart in my GWT Application but getting this error

          '$wnd.Highcharts' is null or not an object 

my OnModule

      public void onModuleLoad() {       RootPanel.get().add(createChart());   }    public Chart createChart() {        Chart chart = new Chart()        .setType(Series.Type.SPLINE)        .setChartTitleText("Lawn Tunnels")        .setMarginRight(10);     Series series = chart.createSeries()        .setName("Moles per Yard")        .setPoints(new Number[] { 163, 203, 276, 408, 547, 729, 628 });     chart.addSeries(series);     return chart;   }   

}

my xml

      <!-- Inherit the core Web Toolkit stuff.                        -->     <inherits name='com.google.gwt.user.User'/>    <inherits name="org.moxieapps.gwt.highcharts.Highcharts"/> 

my HTML

        </script>         <script type="text/javascript" src="js/highcharts.js"></script>     <script type="text/javascript" src="js/themes/dark-blue.js"></script>  <script type="text/javascript" src="js/modules/exporting.js"></script>  </script> 

included this jar file in my classpath

                  org.moxieapps.gwt.highcharts-1.1.3.jar 

Any suggestion

Thanks

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment