日期:2014-05-16 浏览次数:20410 次
var mystore = Ext.create('Ext.data.JsonStore', {
fields: [
{name: 'name', type: 'date', dateFormat: 'Y-m-d H:i:s'},
'value'
],
data: [
{"name":"2014-02-18 12:10:00","value":1567.98},
{"name":"2014-02-18 12:15:00","value":1667.11},
{"name":"2014-02-18 12:20:00","value":1708.76},
{"name":"2014-02-18 12:25:00","value":1622.98},
{"name":"2014-02-18 12:30:00","value":1615.35},
{"name":"2014-02-18 12:35:00","value":1652.07},
{"name":"2014-02-18 12:40:00","value":1706.75},
{"name":"2014-02-18 12:45:00","value":1688.16},
{"name":"2014-02-18 12:50:00","value":1766.28},
{"name":"2014-02-18 12:55:00","value":1811.68},
{"name":"2014-02-18 13:00:00","value":1786.61},
{"name":"2014-02-18 13:05:00","value":1759.81},
{"name":"2014-02-18 13:10:00","value":1721.8}
]
});
Ext.Ajax.request({
url: this.myurl,
async: false,
params: {
argu: this.myargu
},
success : function(response) {
var json = Ext.JSON.decode(response.responseText);
mystore.loadData(json.datas);
&nbs