Hi, Does any one succeed with chart adding to Rootpanel: RootPanel.get ().add(chart);
All my other compnents are added to Rootpanel. I need to add this chart also to the Root panel. As per below suggestion i used ofcgwt api, but in the examples of ofcgwt all chart widgets are added to com.google.gwt.user.client.ui.SimplePanel; But i need to add my chart to com.gwtext.client.widgets.Panel; how can i assign simplePanel component to panel component. Thanks in advance Thanks&Regards Nitesh On Feb 7, 10:56 am, anita sharma <[email protected]> wrote: > Hello All, > > ofcgwt.jar > 352KViewDownload > > You should use ofcgwt, It will work fine on IE, Mozilla and other browsers.I > also found same problem in gwt, so this is the better solution for you. > > On my side it is working fine, Please finds the attached jar. > > Thanks > > Anil Garg > > > > On Tue, Feb 3, 2009 at 5:38 AM, ytbryan <[email protected]> wrote: > > > I am also finding a solution for this problem.if someone found a > > solution please email me at ytbryan at gmail please. > > > i appreciate it. thank you! > > > bryan > > > On Jan 5, 2:59 pm, Syed Shahul <[email protected]> wrote: > > > Buddy, > > > > i am also try for that, if you found any solutions let me know, > > > > thanking you in anticipation > > > Regards, > > > Syed > > > > On Dec 29 2008, 1:31 pm, SunilBansal <[email protected]> > > > wrote: > > > > > Hi Syed, > > > > > I konw, It's working fine if i useViewPort. But i want to render > > > > GWTExt charts on RootPanel. > > > > > On Dec 26, 9:56 am, Syed Shahul <[email protected]> wrote: > > > > > > Hi Sunil, > > > > > > insted of RootPanel useViewPort > > > > > > panel.add(chart); > > > > >Viewportviewport= newViewport(panel); > > > > > > On Dec 23, 12:56 pm, SunilBansal <[email protected]> > > wrote: > > > > > > > Hi All, > > > > > > > I am facing a problem in rendering of GWT-EXT charts on GWT widgets > > in > > > > > > IE. When i am trying to renderChartpanel on RootPanel then charts > > do > > > > > > not render properly in Hosted mode. But if i am adding same panel > > on > > > > > >viewPortthen it's working fine. > > > > > > > I have also updated the version of Flash i.e. Adobe 10. SO i think > > > > > > that problem is not occurring because of Flash. > > > > > > > I am using this code for rendering the chartPanel :- > > > > > > > public class SrisureHome extends EntryPoint { > > > > > > > public void onModuleLoad() { > > > > > > MemoryProxy proxy = new MemoryProxy(getData()); > > > > > > RecordDef recordDef = new RecordDef(new FieldDef[] > > > > > > { new > > > > > > IntegerFieldDef("year"), new IntegerFieldDef("revenue"), new > > > > > > IntegerFieldDef("expense"), new IntegerFieldDef("income") }); > > > > > > > ArrayReader reader = new ArrayReader(recordDef); > > > > > > final Store store = new Store(proxy, reader); > > > > > > store.load(); > > > > > > > SeriesDefX incomeSeries = new SeriesDefX("Income", > > > > > > "income"); > > > > > > incomeSeries.setType(ChartType.LINE); > > > > > > > SeriesDef[] seriesDef = new SeriesDef[] { > > > > > > > new SeriesDefX("Revenue", "revenue"), new > > SeriesDefX > > > > > > ("Expense", > > > > > > "expense"), incomeSeries }; > > > > > > > NumericAxis currencyAxis = new NumericAxis(); > > > > > > > final BarChartchart= new BarChart(); > > > > > > chart.setTitle("IncomeChart"); > > > > > > chart.setStore(store); > > > > > > chart.setSeries(seriesDef); > > > > > > chart.setYField("year"); > > > > > > chart.setXAxis(currencyAxis); > > > > > > chart.setWidth("100%"); > > > > > > chart.setHeight("100%"); > > > > > > RootPanel.get().add(chart); > > > > > > } > > > > > > > public static Object[][] getData() { > > > > > > return new Object[][] { new Object[] { new Integer > > > > > > (2003), new Integer > > > > > > (1246852), new Integer(1123359), new Integer(123493) }, new > > Object[] > > > > > > { new Integer(2004), new Integer(2451876), new Integer(2084952), > > new > > > > > > Integer(366920) }, new Object[] { new Integer(2005), new Integer > > > > > > (2917246), new Integer(2587151), new Integer(330095) }, new > > Object[] > > > > > > { new Integer(2006), new Integer(3318185), new Integer(3087456), > > new > > > > > > Integer(230729) } }; > > > > > > } > > > > > > > } > > > > > > > If anybody has an idea about this problem then please suggest me > > where > > > > > > i am wrong or how can i solve this problem. > > > > > > > Thanks & regards, > > > > > > > Sanj- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
