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'
}]
});
- 4 つではなく 5 つの日付ラベルがあります
- 3 番目の値は 1.5 ですが、y 軸の制限は調整されていません
- ラベルの間の隙間にラベルを配置する方法はありますか?