this.storeG = new Ext.data.JsonStore({
fields:['name', 'visits', 'views'],
data: [
{name:'Jul 07', visits: 245000, views: 3000000},
{name:'Aug 07', visits: 240000, views: 3500000},
{name:'Sep 07', visits: 355000, views: 4000000},
{name:'Oct 07', visits: 375000, views: 4200000},
{name:'Nov 07', visits: 490000, views: 4500000},
{name:'Dec 07', visits: 495000, views: 5800000},
{name:'Jan 08', visits: 520000, views: 6000000},
{name:'Feb 08', visits: 620000, views: 7500000}
]
}),
Ext.chart.Chart.CHART_URL ='../../gfx/charts.swf',
this.columnChart = new Ext.chart.ColumnChart({
store: me.storeG,
xField: 'framework',
yField: 'users'
}),
this.win = new Ext.Window({
title: 'Ejemplo de GFK de Barra',
id:'lolo',
width:200,
height:200,
layout:'fit',
collapsible: true,
border:false,
modal:true,
titleCollapse: true,
items:this.columnChart
}),
this.win.show();
fields:['name', 'visits', 'views'],
data: [
{name:'Jul 07', visits: 245000, views: 3000000},
{name:'Aug 07', visits: 240000, views: 3500000},
{name:'Sep 07', visits: 355000, views: 4000000},
{name:'Oct 07', visits: 375000, views: 4200000},
{name:'Nov 07', visits: 490000, views: 4500000},
{name:'Dec 07', visits: 495000, views: 5800000},
{name:'Jan 08', visits: 520000, views: 6000000},
{name:'Feb 08', visits: 620000, views: 7500000}
]
}),
Ext.chart.Chart.CHART_URL ='../../gfx/charts.swf',
this.columnChart = new Ext.chart.ColumnChart({
store: me.storeG,
xField: 'framework',
yField: 'users'
}),
this.win = new Ext.Window({
title: 'Ejemplo de GFK de Barra',
id:'lolo',
width:200,
height:200,
layout:'fit',
collapsible: true,
border:false,
modal:true,
titleCollapse: true,
items:this.columnChart
}),
this.win.show();
I need to plot in extjs 3.0. Here 's how I'm doing and not work for me. thanks
Aucun commentaire:
Enregistrer un commentaire