[Users] GeoExt popup

zeferino saugene zeferino.saugene at gmail.com
Fri Nov 27 14:31:03 CET 2009


Hi Andreas,

Once again thank you for your suggestions.
When i run the chart out side the popup it works fine.
The code i am using as example that works is:

new Ext.Panel({
        width: 400,
        height: 200,
        renderTo: document.body,
        items: [{
            xtype: 'columnchart',
            store: store,
            yField: 'hits',
            xField: 'month',
            xAxis: new Ext.chart.CategoryAxis({
                title: 'Month'
            }),
            yAxis: new Ext.chart.NumericAxis({
                title: 'Hits'
            }),
            extraStyle: {
               xAxis: {
                    labelRotation: -90
                }
            }
        }]
    });
This works fine when i run it outside. BUT when i include it inside
the GeoExt.Popup does work (see the commented part within the code
presented bellow).
If i leave the way it is now (with comment) it works BUT it is not what i need.

popup = new GeoExt.Popup({
                        title: 'My Popup',
                        feature: feature,
			width: 200,
                        height: 200,
			/*   items:{
				xtype: 'columnchart',
				store: getStore(),
				yField: 'hits',
				xField: 'month',
				xAxis: new Ext.chart.CategoryAxis({
					title: 'Month'
				}),
				yAxis: new Ext.chart.NumericAxis({
					title: 'Hits'
				}),
				extraStyle: {
				   xAxis: {
						labelRotation: -90
					}
				}
			    },
			layout: 'fit',   */
			
            html: getInfo(),
            collapsible: true
        });

Thank you for the support.

--
Zeferino


On Fri, Nov 27, 2009 at 8:57 AM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> Eric Lemoine wrote:
>>
>> On Thursday, November 26, 2009, Andreas Hocevar
>> <andreas.hocevar at gmail.com> wrote:
>>
>>>
>>> Hi,
>>>
>>> I am not familiar with Ext charting, but items is an array.
>>>
>>
>> IIRC it is possible to give "items" a single item.
>>
>
> So it looks like the OP's problem is how to configure the chart.
>
> zeferino, Can you verify that the chart works in a different container and
> then try again to add it as an item? In terms of items, the Popup is nothing
> different than a Panel or a Window in Ext JS.
>
> Regards,
> Andreas.
>
>> cheers,
>>
>>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>


More information about the Users mailing list