Dear All,

I am using  the Open Charts (ofcGWT)  in my GWT-EXT project.

when i am adding the chart to  the Panel
(com.gwtext.client.widgets.Panel)
and Running in Hosted mode i m getting the following error in  Cypal
studio runtime (Eclipse plugin).

The development shell servlet received a request for 'bar-3d.txt' in
module 'data-files.gwt.xml'
   Loading module 'data-files'
      Invalid module name: 'data-files'

and also the other error in browser is:

Open Flash Chart
IO ERROR
Loading test data
Error #2032

This is the URL that I tried to open:../data-files/bar-3d.txt

The Module file i used is specified below:

<module>
 <inherits name='com.google.gwt.user.User'/>

    <inherits name="com.gwtext.GwtExt" />

        <!-- Specify the app entry point class.                   -->
        <entry-point class='com.nitesh.client.LineChartWithOFC'/>

        <inherits name="com.google.gwt.user.theme.standard.Standard"/>
   <stylesheet src="js/ext-2.0.2/resources/css/ext-all.css" />
        <script  src="js/ext-2.0.2/adapter/ext/ext-base.js"/>
     <script  src="js/ext-2.0.2/ext-all.js"/>
        <inherits name="com.google.gwt.user.theme.standard.Standard"/>

        <inherits name="com.google.gwt.json.JSON"/>
        <inherits name="com.rednels.ofcgwt.OFCGWT"/>

</module>


The java code is :

import com.google.gwt.core.client.EntryPoint;

import com.google.gwt.user.client.Random;

import com.google.gwt.user.client.ui.RootPanel;
import com.gwtext.client.widgets.Panel;
import com.rednels.ofcgwt.client.ChartWidget;
import com.rednels.ofcgwt.client.model.ChartData;
import com.rednels.ofcgwt.client.model.axis.YAxis;
import com.rednels.ofcgwt.client.model.elements.LineChart;
import com.rednels.ofcgwt.client.model.elements.LineChart.LineStyle;

public class LineChartWithOFC implements EntryPoint {



        public void onModuleLoad() {
                 Panel panel = new Panel();
                      panel.add(addLineChart());

                RootPanel.get().add(panel);
        }



        private Widget addLineChart() {
                ChartWidget chart = new ChartWidget();
                //ChartData cd = new ChartData("Relative 
Performance","font-size:
14px; font-family: Verdana; text-align: center;");

                ChartData cd =new ChartData();

                //cd.setBackgroundColour("#ffffff");

                LineChart lc1 = new LineChart(LineStyle.NORMAL);
                lc1.setText("PoorEnterprises Pty");
                //lc1.setColour("#ff0000");

                for (int t=0;t<30;t++) {
                        lc1.addValues(Random.nextDouble()*.5 - .5);
                }
                LineChart lc2 = new LineChart(LineStyle.HOLLOW);
                //lc2.setColour("#00ff00");
                lc2.setText("Ave-Ridge Co LLC");
                for (int t=0;t<30;t++) {
                        lc2.addValues(Random.nextDouble()*.8);
                }
                LineChart lc3 = new LineChart(LineStyle.DOT);
                //lc3.setColour("#0000ff");
                lc3.setText("Suu Perb Enterprises");
                for (int t=0;t<30;t++) {
                        lc3.addValues(Random.nextDouble()*1.1 + .5);
                }
                YAxis ya = new YAxis();
                ya.setMax(2);
                ya.setMin(-1);
                cd.setYAxis(ya);

                cd.addElements(lc1);
                cd.addElements(lc2);
                cd.addElements(lc3);
                chart.setSize("600", "300");
                chart.setJsonData(cd.toString());
                return chart;
        }


}

Can you please help me , where i done the mistake .

It is not running in the Hosted mode only. Once i run this, the same
URL if i given in
IE or mozilla browser the chart is showing with out any problems.

e.g: URL:

http://127.0.0.1:8888/com.nitesh.LineChartWithOFC/LineChartWithOFC.html



--~--~---------~--~----~------------~-------~--~----~
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