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
Log in to post a comment.
I am trying to run a simple High chart in my GWT Application but getting this error
my OnModule
}
public Chart createChart() {
}
}
my xml
<inherits name="org.moxieapps.gwt.highcharts.Highcharts"/>
my HTML
<script type="text/javascript" src="js/modules/exporting.js"></script>
</script>
included this jar file in my classpath
Any suggestion
Thanks