extjs圖表上的新增功能。extjs圖表不顯示
我有一個ExtJS面積圖,我得到了店,型號,OK,但圖表沒有顯示出來,在所有的,什麼都沒有,我不知道問題出在哪裏:
var store1 = Ext.create('Ext.data.Store', {
fields: ['date', 'ged', 'watt', 'sicomor'],
data: [{
"date": 20-10-2014,
"ged": 52,
"watt": 21,
"sicomor": 18
}, {
"date": 21 - 10 - 2014,
"ged": 24,
"watt": 62,
"sicomor": 14
}, {
"date": 22-10-2014,
"ged": 41,
"watt": 69,
"sicomor": 25
}]
});
Ext.define("dashboard.view.HrsWorkedChart", {
extend: "Ext.chart.Chart",
alias: "widget.hrsworkedchart",
style: 'background:#fff',
animate: true,
store: store1,
legend: {
position: 'right'
},
axes: [{
type: 'Numeric',
minimum: 0,
position: 'left',
fields: ['watt', 'ged', 'sicomor'],
title: 'Nombre documents en retard',
minorTickSteps: 1,
grid: {
odd: {
opacity: 1,
fill: '#ddd',
stroke: '#bbb',
'stroke-width': 0.5
}
}
}, {
type: 'Category',
position: 'bottom',
fields: ['date'],
title: 'Jours'
}],
series: [{
type: 'area',
axis: 'left',
xField: 'name',
yField: ['watt', 'ged', 'sicomor'],
}]
});
Ext.application({
name: 'AreaChart',
launch: function() {
Ext.Viewport.add({xtype: 'hrsworkedchart'})
}
});
你能幫我一把嗎?
乾杯很多