Hi to all, sorry for my lacking english!

I have a problem:

I see that the series in a LineChart is "the column" in a store. For
this problem I write the following code:

        private void refresh(String title){
                FieldDef[] temp=new FieldDef[field.length+1];
                int i=0;
                for (;i<field.length;i++) temp[i]=field[i];
                temp[i]=new FloatFieldDef(title);
                field=temp;
                recordChart=new RecordDef(field);
//              String[] temp=new String[field.length+1];
//              int i=0;
//              for (;i<field.length;i++) temp[i]=field[i];
//              temp[i]=title;
//              field=temp;

                //*******************STORE*********************//
                storeChart.removeAll();

                storeChart.setRecordDef(recordChart);

                for (int r=0;r<data.length;r++){
                        Object[] array=new Object[field.length];
                        int q=0;
                        for (;q<data[r].length;q++) array[q]=data[r][q];
                        array[q]=value[r];
                        storeChart.add(recordChart.createRecord(array));
                        data[r]=array;
                }
                //*********************************************//

                seriesDef=new SeriesDefY[field.length];
                for (int k=0;k<field.length;k++) seriesDef[k]=new 
SeriesDefY(field
[k].getName(),field[k].getName());

                chart.setSeries(seriesDef);
                chart.refresh();
        }

recordDef, storeChart and seriesDef are updating correctly, but the
chart is unchanged.
The Panel that contains che chart have BorderLayout; I have tried
other layout and I have also tried to use a SimpleStore, but the
result is the same.

Help me please

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