Toggle navigation
空调一天之内的模式状态图
By
老屋难舍5
2017-07-26 16:01:21
脚本
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
图表已生成
整理代码
刷新
代码
var option = { tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: 'black', }, lineStyle: { color: '#666', }, }, }, grid: { top: '10%', bottom: '10%', borderWidth: 0, }, xAxis: [{ type: 'category', boundaryGap: 0, data: ['01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00', '24:00', ], splitLine: { show: false, }, }, { type: 'value', gridIndex: 0, axisLabel: { show: false, }, splitLine: { show: false, }, axisTick: { show: false, }, }], yAxis: [{ interval: 15, show: false, min: 0, max: 50, position: 'right', splitLine: { show: false, }, axisLabel: { show: true, }, }, { type: 'category', position: 'left', axisLabel: { show: true, }, splitLine: { show: false, }, data: ['待机模式', '制冷模式', '制热模式', '干燥模式', '送风模式'], }], series: [{ type: 'scatter', smooth: false, xAxisIndex: 1, yAxisIndex: 0, }, { type: 'line', name: '待机模式', symbol: 'none', z: 5, lineStyle: { normal: { width: 0, opacity: 0, }, }, areaStyle: { normal: { color: '#dc77dc', }, }, data: [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], }, { type: 'line', name: '制冷模式', symbol: 'none', z: 4, lineStyle: { normal: { width: 0, opacity: 0, }, }, areaStyle: { normal: { color: '#7b9ce1', }, }, data: [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20], }, { type: 'line', name: '制热模式', symbol: 'none', z: 3, lineStyle: { normal: { width: 0, opacity: 0, }, }, areaStyle: { normal: { color: '#e0bc78', }, }, data: [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], }, { type: 'line', name: '干燥模式', symbol: 'none', z: 2, lineStyle: { normal: { width: 0, opacity: 0, }, }, areaStyle: { normal: { color: '#7b9ce1', }, }, data: [40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40], }, { type: 'line', name: '送风模式', symbol: 'none', z: 1, lineStyle: { normal: { width: 0, opacity: 0, }, }, areaStyle: { normal: { color: '#75d874', }, }, data: [50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50], }, { name: '空调状态', type: 'line', symbol: 'none', step: 'start', z: 10, itemStyle: { normal: { color: '#000', }, }, lineStyle: { normal: { width: 3, }, }, label: { normal: { show: true, }, }, data: [5, 5, 5, 5, 5, 5, 5, 15, 15, 15, 15, 45, 45, 45, 45, 25, 25, 25, 25, 15, 15, 15, 5, 5], }], };