ExtJS 4.0.7 图表有什么问题?在这个小提琴中:http: //jsfiddle.net/JPEEv/377/
var store = Ext.create('Ext.data.Store', {
storeId: 'MyStore',
fields: [{
name: 'date', type: 'date'
},{
name: 'duration', type: 'float'
}],
data: [
{ date: new Date(2014,1,1), duration: 0.3},
{ date: new Date(2014,1,2), duration: 0.2},
{ date: new Date(2014,1,3), duration: 1.5},
{ date: new Date(2014,1,4), duration: 0.7}
]
});
var chart = Ext.widget('chart', {
renderTo: Ext.getBody(),
width: 800,
height: 400,
store: 'MyStore',
axes: [{
type: 'Time',
position: 'bottom',
fields: ['date'],
dateFormat: 'd.M'
}, {
type: 'Numeric',
position: 'left',
fields: ['value']
}],
series: [{
type: 'column',
axis: ['left'],
xField: 'date',
yField: 'duration'
}]
});
- 有 5 个日期标签而不是 4 个
- 第三个值为1.5,但是y轴的限制没有调整
- 有没有办法在标签之间的间隙中放置标签?