题目:有5类数据文件,根据年份统计这五类文件的上传频数
aspx:
<div class="stan-panel" style="margin-bottom: 10px;">
<div id="divZx" class="flot-content" style="height: 280px"></div>
</div>
js:
function loadFlot() {
AjaxPost(url + "tongji", { }, function (res) {
var zxdata = [];
var years = [];
$.each(outStr, function (index, val) {
if (!years.Contains(val.CREATEYEAR)) //给年份去重
years.push(val.CREATEYEAR);
});
for (var i = 0; i < years.length; i++) {
var xItem = {};
xItem.year = years[i];
xItem.form1 = 0; //第一种
xItem.form2 = 0; //第二种
xItem.form3 = 0; //第三种