Thursday, April 4, 2013

Re: GWT , Highcharts not working

On a first view JQuery is also needed. 
take a look at step 3 http://www.moxiegroup.com/moxieapps/gwt-highcharts/quickstart.jsp

<script type="text/javascript" 
   src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> 
</script>
<script type="text/javascript" src="js/highcharts.js"></script>

I also got this exception, but in my case it was caused by the fact that this js files were not placed in the head of the HTML file.

Best regards!

marți, 24 ianuarie 2012, 21:24:16 UTC+2, junaidp a scris:

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 unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment