文档
测试

查询秒级数据

GET
/energy/record/query/data/last

接口描述

查询最新的能源数据 ,每3秒更新一次

响应参数

参数名
类型
描述
必填
data
json
echarts 图表格式 对应option
必填

说明 / 示例

{ "code": 10000, "data": { "grid": { "bottom": "3%", "containLabel": "true", "left": "3%", "right": "4%" }, "legend": { "data": [ "A相电压", "B相电压" ] }, "series": [ { "data": [ 228.88810247839956, 235.00308181653799, 203.08681296994828, 202.16629083373837, 224.76310386398174, 230.85054813387168, 244.83346167303495, 232.50873599950071, 201.1946469493165, 205.1431162795285, 238.15830565402604, 213.97085284154724, 241.23317899304365, 202.7413884760329, 203.20979910778564, 233.55282558788213, 245.92749255429266, 218.17869606338564, 223.40002506838073, 232.10185614051358 ], "name": "A相电压", "stack": "总量", "type": "line" }, { "data": [ 247.94214547481198, 212.13539130976343, 232.09516494005757, 242.95118627782318, 215.01399719929492, 203.37571525178612, 233.5561975881348, 210.27458175713554, 238.30698351010756, 243.62818553266166, 213.0626618837259, 200.06499865395386, 213.14062112446325, 209.83144681882843, 213.6458387836541, 237.86533178493448, 203.31112738637995, 220.73440008065757, 245.73966887400928, 246.30304425736668 ], "name": "B相电压", "stack": "总量", "type": "line" } ], "title": { "text": "折线图堆叠" }, "toolbox": { "feature": { "saveAsImage": {} } }, "tooltip": { "trigger": "axis" }, "xAxis": { "boundaryGap": "false", "data": [ "2021-04-15 16:42:05", "2021-04-15 16:42:04", "2021-04-15 16:42:03", "2021-04-15 16:42:02", "2021-04-15 16:42:01", "2021-04-15 16:42:00", "2021-04-15 16:41:59", "2021-04-15 16:41:58", "2021-04-15 16:41:57", "2021-04-15 16:41:56", "2021-04-15 16:41:55", "2021-04-15 16:41:54", "2021-04-15 16:41:53", "2021-04-15 16:41:52", "2021-04-15 16:41:50", "2021-04-15 16:41:49", "2021-04-15 16:41:48", "2021-04-15 16:41:47", "2021-04-15 16:41:46", "2021-04-15 16:41:45" ], "type": "category" }, "yAxis": { "type": "value" } }, "msg": "请求成功" }