PDA

View Full Version : I need to plot in extjs 3.0. Here 's how I'm doing and not work for me. thanks



noslen
16 Apr 2015, 7:37 AM
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();

Gary Schlosberg
17 Apr 2015, 3:12 PM
Looks like you were looking at this chart example as a guide.
http://dev.sencha.com/deploy/ext-3.4.0/examples/chart/charts.html

What happens when you try to run your chart? Any error messages in console?