Web/JS/loginpiechart.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
Ext.onReady(function () {
//初始化提示信息
Ext.QuickTips.init();
//读取后台数据
var loglinesotre = Ext.create('Ext.data.Store', {
fields: ['logindate', 'logindatevalue'],
proxy: {
type: 'ajax',
url: '../logmanager/loginpiechartjson',
reader: {
type: 'json',
root: "root",
}
},
autoLoad:true
});
var loginlogchart = Ext.create('Ext.chart.Chart', {
store: loglinesotre,
series: [{
type: 'pie',
angleField: 'logindatevalue',
showInLegend: true,
tips: {
trackMouse: true,
width: 140,
height: 28,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('logindate') + ': ' + storeItem.get('logindatevalue'));
}
},
highlight: {
segment: {
margin: 20
}
},
label: {
field: 'logindate',
display: '登录人数',
contrast: true,
font: '18px Arial'
}
}]
});
var loginlogpanel = Ext.create('Ext.panel.Panel', {
title: '登录人数饼形图',
renderTo: Ext.getBody(),
layout: 'fit',
height:450,
items:loginlogchart,
tbar: ["查询日期:", {
xtype: "datefield",
id: "dateselect",
format: 'Y-m',
value: Ext.util.Format.date(new Date(), "Y-m")
}, "-", {
xtype: "button",
width: 80,
text: "查询",
icon: "../images/table_go.png",
后面还有 7 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。