فهرست منبع

小程序数据中心

wrh 2 سال پیش
والد
کامیت
c854b3a7cd
1فایلهای تغییر یافته به همراه18 افزوده شده و 3 حذف شده
  1. 18 3
      nngkxxdp/src/main/resources/static/nnzwminiapp/pages/dataCenter/dataCenter.js

+ 18 - 3
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/dataCenter/dataCenter.js

@@ -170,9 +170,13 @@ Page({
       grid = {
         left: '10%',
         bottom: '40%',
-        top: '10%'
+        top: '15%'
+      },
+      legend = {
+        data: ['同比增长(%)']
       },
       series = [{
+        name: '同比增长(%)',
         data: [-4, 4, 5, 13, 17, -7, 8],
         type: 'line',
         itemStyle: {
@@ -189,6 +193,7 @@ Page({
       xAxis: xAxis,
       yAxis: yAxis,
       grid: grid,
+      legend: legend,
       series: series,
       animationDelay: function (idx) {
         return idx * 50;
@@ -224,9 +229,13 @@ Page({
       grid = {
         left: '10%',
         bottom: '40%',
-        top: '10%'
+        top: '15%'
+      },
+      legend = {
+        data: ['同比增长(%)']
       },
       series = [{
+        name: '同比增长(%)',
         data: [8, -2, 15, 3, -7, 7, 8],
         type: 'line',
         itemStyle: {
@@ -243,6 +252,7 @@ Page({
       xAxis: xAxis,
       yAxis: yAxis,
       grid: grid,
+      legend: legend,
       series: series,
       animationDelay: function (idx) {
         return idx * 50;
@@ -278,9 +288,13 @@ Page({
       grid = {
         left: '10%',
         bottom: '40%',
-        top: '10%'
+        top: '15%'
+      },
+      legend = {
+        data: ['同比增长(%)']
       },
       series = [{
+        name: '同比增长(%)',
         data: [-8, 8, -5, 13, 17, -7, 8],
         type: 'line',
         itemStyle: {
@@ -297,6 +311,7 @@ Page({
       xAxis: xAxis,
       yAxis: yAxis,
       grid: grid,
+      legend: legend,
       series: series,
       animationDelay: function (idx) {
         return idx * 50;