Hi Sunil,

insted of RootPanel use ViewPort

panel.add(chart);
Viewport viewport = new Viewport(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 render Chart panel on RootPanel then charts do
> not render properly in Hosted mode. But if i am adding same panel on
> viewPort then 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 BarChart chart = new BarChart();
>                 chart.setTitle("Income Chart");
>                 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
--~--~---------~--~----~------------~-------~--~----~
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