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 - - + +