当替换图表时,其他一些这样的网格都很好。也许声明图表中存在某种错误?我的图表页面(projecttaskstatistics):
Ext.define('yTrack.view.project.Task.Statistics' , {
extended: 'Ext.chart.Chart',
alias: 'widget.projecttaskstatistics',
width: 500,
height: 300,
animate: true,
store: 'Tasks.Timehistory',
axes: [{
type: 'Time',
position: 'bottom',
fields: ['time'],
dateFormat: 'G',
title: 'Use of time',
grid: true
}, {
type: 'Category',
position: 'left',
fields: ['user_name'],
title: 'Users'
}],
series: [{
type: 'bar',
axis: 'bottom',
highlight: true,
tips: {
trackMouse: true,
width: 140,
height: 28
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('user_name') + ': ' + storeItem.get('time') + ' views');
}
},
label: {
display: 'insideEnd',
field: 'time',
renderer: Ext.util.Format.dateRenderer('G:i'),
orientation: 'horizontal',
color: '#333',
'text-anchor': 'middle'
},
xField: 'user_name',
yField: 'time'
}]
});
我可以找到错误。帮我。