function timee1chartPanel(){
var timee1chartPanel=Ext.create("Ext.panel.Panel",{
title:"管理用户",
layout:'fit',
items:[checkAllTimee1chart()]
});
return timee1chartPanel;
}
function checkAllTimee1chart(){
new Ext.Viewport({
layout:'fit',
item:[{
xtype:'chart',
store:store,
axes:[
{
title:'Temperature',
type:'Numeric',
position:'left',
fields:['temperature'],
minimm:0,
maximum:100,
},
{
title:'Time',
type:'Category',
position:'bottom',
fields:['date']
}
],
series:[
{
type:'line',
xField:'date',
yField:'temperature'
}
]
}]
})
};
Ext.define('WeatherPoint', {
extend: 'Ext.data.Model',
fields: ['temperature', 'date']
});
var store = Ext.create('Ext.data.Store', {
model: 'WeatherPoint',
data: [
{ temperature: 58, date: new Date(2011, 1, 1, 8) },
{ temperature: 63, date: new Date(2011, 1, 1, 9) },
{ temperature: 73, date: new Date(2011, 1, 1, 10) },
{ temperature: 78, date: new Date(2011, 1, 1, 11) },
{ temperature: 81, date: new Date(2011, 1, 1, 12) },
]
}