extjs 차트에 새로 추가되었습니다.extjs 차트가 표시되지 않습니다
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'})
}
});
jsfiddle :
내가 extjs라는 영역 차트를 데, 그 문제가 어디에 저장, 모델, 좋아하지만, 차트, 전혀 아무것도를 보여주는되지 않으며, 내가 아무 생각이없는있어
나를 도와 줄 수 있습니까?
건배 많은