Skip to content

Commit

Permalink
refactor: Update examples files
Browse files Browse the repository at this point in the history
  • Loading branch information
PindleskinY committed May 11, 2021
1 parent 62e760d commit 48bff58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/static/initial.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions examples/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>index</title>
<link href="../static/dist/css/flask-state.css" rel="stylesheet"></head>
<script src="https://cdn.jsdelivr.net/gh/yoobool/[email protected].2/packages/umd/flask-state.min.js"></script>
<link href="https://cdn.jsdelivr.net/gh/yoobool/[email protected].2/packages/flask-state.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/yoobool/[email protected].3/packages/umd/flask-state.min.js"></script>
<link href="https://cdn.jsdelivr.net/gh/yoobool/[email protected].3/packages/flask-state.min.css" rel="stylesheet">
</head>
<body style="height: 100%;background-color: purple">
<script src="https://cdn.staticfile.org/echarts/4.2.1/echarts.min.js"></script>
Expand Down

0 comments on commit 48bff58

Please sign in to comment.