Toggle navigation
CPU 监控-2
By
待***生
2019-11-27 06:20:01
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
option = { title: { text: 'CPU 监控' }, tooltip: { trigger: 'axis', itemStyle: { normal: { label: { show: true } } } }, toolbox: { show: true, feature: { magicType: { type: ['line', 'bar'] } } }, xAxis: { type: 'category', data: ["13:27", "13:28", "13:29", "13:30", "13:31", "13:32", "13:33", "13:34", "13:35", "13:36", "13:37"] }, yAxis: { min: 0, max: 100, type: 'value', axisLabel: { formatter: ' {value} %' } }, series: [{ name: 'CPU 使用率', type: 'line', data: ["15.10", "17.52", "30.77", "37.87", "29.66", "41.30", "24.55", "26.08", "22.30", "23.90", "41.77"], markLine: { symbol: "none", //去掉警戒线最后面的箭头 label: { position: "end", //将警示值放在哪个位置,三个值“start”,"middle","end" 开始 中点 结束 formatter: "警戒线" }, data: [{ silent: false, //鼠标悬停事件 true没有,false有 lineStyle: { //警戒线的样式 ,虚实 颜色 type: "solid", color: "rgba(238, 99, 99)" }, name: '警戒线', yAxis: 20 }] } }, //超下限的数据用三角形展示数据 { type: 'scatter', data: [, , "30.77", "37.87", "29.66", "41.30", "24.55", "26.08", "22.30", "23.90", "41.77"], itemStyle: { normal: { label: { position: 'top', show: true, color: 'white', backgroundColor: 'black' } } }, } ] };