Skip to content

Commit

Permalink
style: Change memory chart series name
Browse files Browse the repository at this point in the history
  • Loading branch information
PindleskinY committed May 11, 2021
1 parent 4c4f0b4 commit 62e760d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions packages/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Project Logo](https://cdn.jsdelivr.net/gh/yoobool/[email protected].2/src/flask_state/static/flask_state.png)
![Project Logo](https://cdn.jsdelivr.net/gh/yoobool/[email protected].3/src/flask_state/static/flask_state.png)

[![Contributor Badge](https://img.shields.io/badge/Contributions-Welcome-0059b3)](https://github.com/yoobool/flask-state/tree/master/.github/ISSUE_TEMPLATE)
[![Gitter Badge](https://img.shields.io/badge/Chat-Gitter-ff69b4.svg?label=Chat&logo=gitter)](https://gitter.im/flaskstate/community)
Expand Down Expand Up @@ -38,8 +38,8 @@ Alternatively, install Flask-State via NPM or include this script tag to the hea
section of your HTML document:

```html
<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">
```

```bash
Expand Down
3 changes: 1 addition & 2 deletions packages/cjs/flask-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,7 @@
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
2 changes: 1 addition & 1 deletion packages/cjs/flask-state.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flask-state",
"version": "1.1.2",
"version": "1.1.3",
"description": "Flask-States is a visual plug-in based on flask. It can record the local state every minute and read the status of redis if you have configured redis,and generate data chart to show to users through Echarts.",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions packages/umd/flask-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,7 @@
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
2 changes: 1 addition & 1 deletion packages/umd/flask-state.min.js

Large diffs are not rendered by default.

0 comments on commit 62e760d

Please sign in to comment.