[Users] GeoExt popup

Andreas Hocevar andreas.hocevar at gmail.com
Thu Nov 26 23:15:33 CET 2009


Hi,

I am not familiar with Ext charting, but items is an array. See below.
zeferino saugene wrote:
> Hi List users,
>
> I trying to use the GeoExt.Popup to display chart data.
> I need help on replacing the line html: "<div>Popup content</div>",
> presented in
>
> var popup = new GeoExt.Popup({
>     title: "My Popup",
>     feature: feature,
>     width: 200,
>   

    // add layout: fit if you have just one item
    layout: fit,

>     html: "<div>Popup content</div>",
>     collapsible: true
> });
>
> with for example:
>
> items: {
>   

wrong. Replace with

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

]

Regards,
Andreas.

> Thank you in advance for the collaboration.
>
> Regards,
> Zeferino
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>   



More information about the Users mailing list