From 1fdd2c6fe276c5d9849c14739eaba37061264eb5 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Mon, 16 Jul 2018 11:36:33 +0800 Subject: [PATCH] 统计分析 划分独立模块 --- _mock/_chart.ts | 54 +++++++++++++++++++++++++++++++++++------------------- 1 files changed, 35 insertions(+), 19 deletions(-) diff --git a/_mock/_chart.ts b/_mock/_chart.ts index 974bcbc..f59a20e 100644 --- a/_mock/_chart.ts +++ b/_mock/_chart.ts @@ -45,86 +45,102 @@ for (let i = 0; i < 50; i += 1) { searchData.push({ index: i + 1, - keyword: `���������������-${i}`, - count: Math.floor(Math.random() * 1000), + keyword: `������������-${i}`, + count: Math.floor(Math.random() * 100), range: Math.floor(Math.random() * 100), status: Math.floor((Math.random() * 10) % 2) }); } const salesTypeData = [ { - x: "������������", + x: "PM2.5", y: 4544 }, { - x: "������������", + x: "PM10", y: 3321 }, { - x: "������������", + x: "������������", y: 3113 }, { - x: "������������", + x: "������������", y: 2341 }, { - x: "������������", + x: "������", y: 1231 }, { - x: "������", + x: "������������", + y: 1231 + }, + { + x: "���������0.3", y: 1231 } ]; const salesTypeDataOnline = [ { - x: "������������", + x: "PM2.5", y: 244 }, { - x: "������������", + x: "PM10", y: 321 }, { - x: "������������", + x: "������������", y: 311 }, { - x: "������������", + x: "������������", y: 41 }, { - x: "������������", + x: "������", y: 121 }, { - x: '������', + x: '������������', y: 111 + }, + { + x: "���������0.3", + y: 1231 } ]; const salesTypeDataOffline = [ { - x: '������������', + x: 'PM2.5', y: 99 }, { - x: '������������', + x: 'PM10', y: 188 }, { - x: '������������', + x: '������������', y: 344 }, { - x: '������������', + x: '������������', y: 255 }, { - x: '������', + x: '������', y: 65 + }, + { + x: '������������', + y: 100 + }, + { + x: "���������0.3", + y: 500 } ]; -- Gitblit v1.8.0