Hi, i have this problem:

[code]public static native void getGraficosNuevos() /*-{
                var chart;
                $(document).ready(function() {
                        chart = new Highcharts.Chart({
                                chart: {
                                        renderTo: 'container',
                                        defaultSeriesType: 'bar'
                                },
                                title: {
                                        text: 'Historic World Population by 
Region'
                                },
                                subtitle: {
                                        text: 'Source: Wikipedia.org'
                                },
                                xAxis: {
                                        categories: ['Africa', 'America', 
'Asia', 'Europe', 'Oceania'],
                                        title: {
                                                text: null
                                        }
                                },
                                yAxis: {
                                        min: 0,
                                        title: {
                                                text: 'Population (millions)',
                                                align: 'high'
                                        }
                                },
                                tooltip: {
                                        formatter: function() {
                                                return '<b>'+ this.x 
+'</b><br/>'+
                                                         this.series.name +': 
'+ this.y +' millions';
                                        }
                                },
                                plotOptions: {
                                        bar: {
                                                dataLabels: {
                                                        enabled: true,
                                                        color: 'auto'
                                                }
                                        }
                                },
                                legend: {
                                        layout: 'vertical',
                                        style: {
                                                left: 'auto',
                                                bottom: 'auto',
                                                right: '100px',
                                                top: '100px'
                                        },
                                        borderWidth: 1,
                                        backgroundColor: '#FFFFFF'
                                },
                                credits: {
                                        enabled: false
                                },
                                series: [{
                                        name: 'Year 1800',
                                        data: [107, 31, 635, 203, 2]
                                }, {
                                        name: 'Year 1900',
                                        data: [133, 156, 947, 408, 6]
                                }, {
                                        name: 'Year 2008',
                                        data: [973, 914, 4054, 732, 34]
                                }]
                        });


                });


        }-*/;
[/code]
call this method and the exception is as follows:

***
com.google.gwt.core.client.JavaScriptException: (ReferenceError): $ is
not defined.

***

can you help?.
I need to know how to run this script in gwt.

thank you very much

-- 
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en.

Reply via email to