From 46d4905467aeaf1979613a156753b6625608820b Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Fri, 03 Aug 2018 17:24:02 +0800
Subject: [PATCH] 页面 优化
---
_mock/_chart.ts | 88 +++++++++++++++++++++++++++++++++----------
1 files changed, 67 insertions(+), 21 deletions(-)
diff --git a/_mock/_chart.ts b/_mock/_chart.ts
index 974bcbc..72c6a6f 100644
--- a/_mock/_chart.ts
+++ b/_mock/_chart.ts
@@ -45,86 +45,131 @@
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 = [
+const salesTypeDataOnline2 = [
{
- x: '������������',
+ x: "PM2.5",
+ y: 220
+ },
+ {
+ x: "PM10",
+ y: 280
+ },
+ {
+ x: "������������",
+ y: 290
+ },
+ {
+ x: "������������",
+ y: 30
+ },
+ {
+ x: "������",
+ y: 98
+ },
+ {
+ x: '������������',
y: 99
},
{
- x: '������������',
+ x: "���������0.3",
+ y: 890
+ }
+];
+const salesTypeDataOffline = [
+ {
+ x: 'PM2.5',
+ y: 99
+ },
+ {
+ x: 'PM10',
y: 188
},
{
- x: '������������',
+ x: '������������',
y: 344
},
{
- x: '������������',
+ x: '������������',
y: 255
},
{
- x: '������',
+ x: '������',
y: 65
+ },
+ {
+ x: '������������',
+ y: 100
+ },
+ {
+ x: "���������0.3",
+ y: 500
}
];
@@ -204,6 +249,7 @@
offlineChartData,
salesTypeData,
salesTypeDataOnline,
+ salesTypeDataOnline2,
salesTypeDataOffline,
radarData
}),
--
Gitblit v1.8.0