I'm thinking of use Extjs Chart to make many curves, and now the problem is Y axises are at the same parameter, but the X axises are difrerent.my code follow:
var chartStore = new Ext.data.JsonStore({
root:'data',
fields:[
{
//似乎有bug,labelfunction不好用,就自己处理一个field来当x轴标签
name:'testss1',
mapping:'testss1',
convert:function(v,record){
return Date.parseDate(v, 'Y-m-d H:i').format('y-m-d');
}
},{
//似乎有bug,labelfunction不好用,就自己处理一个field来当x轴标签
name:'testss2',
mapping:'testss2',
convert:function(v,record){
return Date.parseDate(v, 'Y-m-d H:i').format('y-m-d');
}
},
{name:'testss1',type:'date',dateFormat:'Y-m-d H:i'},
{name:'testss2',type:'date',dateFormat:'Y-m-d H:i'},
{name:'testss3',type:'int'},
/* {name:'startTime',type:'date',dateFormat:'Y-m-d H:i'},
{name:'endTime',type:'date',dateFormat:'Y-m-d H:i'}, */
{name:'alarmCount',type:'int'},
{name:'eventCount',type:'int'}
]
/* sortInfo:{field: 'startTime', direction: 'ASC'} */
});
in theory, my X axis have two horizontal times, and the times are in turn, but what i see from my picture are two separate curves, so here i want to ask for help,what is the problem? please help me ~