Skip to content

Commit

Permalink
Update network speed chart rendering URL and refactor net.html to ext…
Browse files Browse the repository at this point in the history
…ract the creation of main div into a separate function
  • Loading branch information
arloor committed Oct 25, 2024
1 parent 87d1651 commit 3d5f959
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions rust_http_proxy/html/net.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
font-family: "JetBrains Mono", "SFMono-Regular", "SF-Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;
}
</style>
<!-- <script src="https://us.arloor.dev/https://cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js"></script> -->
<script src="https://www.arloor.com/echarts.min.js"></script>
<script src="https://us.arloor.dev/https://cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js"></script>
<!-- <script src="https://www.arloor.com/echarts.min.js"></script> -->
</head>

<body>
Expand Down Expand Up @@ -74,26 +74,6 @@ <h1 class="in"></h1>
itemStyle: {
color: '#ef0000',
},
"markLine": {
"data": [{
"type": "average",
"name": "平均值"
}],
"label": {
formatter: value => formatDataRateIEC(value.value, 4)
}
},
"markPoint": {
"data": [{
"type": "max",
"name": "最大值"
}],
symbol: "roundRect",
symbolSize: [70, 30],
"label": {
formatter: value => formatDataRateIEC(value.value, 4)
}
},
"smooth": true,
"type": "line"
}
Expand All @@ -109,6 +89,26 @@ <h1 class="in"></h1>
...baseSeries,
"data": data.series_up,
"name": "上行网速",
"markLine": {
"data": [{
"type": "average",
"name": "平均值"
}],
"label": {
formatter: value => formatDataRateIEC(value.value, 4)
}
},
"markPoint": {
"data": [{
"type": "max",
"name": "最大值"
}],
symbol: "roundRect",
symbolSize: [70, 30],
"label": {
formatter: value => formatDataRateIEC(value.value, 4)
}
},
},
{
...baseSeries,
Expand Down

0 comments on commit 3d5f959

Please sign in to comment.