From 48bff58c4ab688af9e5845387d992957bd9de1f8 Mon Sep 17 00:00:00 2001 From: aaajiulong <525763728@qq.com> Date: Tue, 11 May 2021 13:41:56 +0800 Subject: [PATCH] refactor: Update examples files --- examples/static/initial.js | 3 +-- examples/templates/index.html | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/static/initial.js b/examples/static/initial.js index 655c940..44ffca1 100644 --- a/examples/static/initial.js +++ b/examples/static/initial.js @@ -505,8 +505,7 @@ class MachineStatus { break; case "memory": baseData.color = ['#42a5f5']; - baseData.legend.data = [lineName]; - baseData.series.push({name: lineName, type: 'line', symbol: 'none', hoverAnimation: false}); + baseData.series.push({name: 'memory', type: 'line', symbol: 'none', hoverAnimation: false}); } return baseData; } diff --git a/examples/templates/index.html b/examples/templates/index.html index 1a498f2..1fc56fd 100644 --- a/examples/templates/index.html +++ b/examples/templates/index.html @@ -6,8 +6,8 @@ content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> index - - + +