done 1019 again

这个提交包含在:
lb 2023-10-19 16:22:56 +08:00
父节点 82171c8ea8
当前提交 6b978fa93b
共有 2 个文件被更改,包括 11 次插入4 次删除

查看文件

@ -169,6 +169,7 @@ export default ({ x_data, y_data }, graph2) => {
dataZoom: {
type: 'inside'
},
series: [
{
id: 'temp-series',
@ -186,15 +187,17 @@ export default ({ x_data, y_data }, graph2) => {
name: '燃气消耗量(m³)',
xAxisIndex: 1,
yAxisIndex: 1,
data: Array(65)
.fill(1)
.map((val) => Math.floor(Math.random() * 128)),
data: graph2?.gas || [],
// data: Array(65)
// .fill(1)
// .map((val) => Math.floor(Math.random() * 128)),
type: "line",
},
{
id: 'lambda-series',
name: 'lambda',
data: [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 33, 11, 21, 3, 5, 67, 8, 88, 90, 12, 32, 2, 31, 33, null, null],
// data: [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 33, 11, 21, 3, 5, 67, 8, 88, 90, 12, 32, 2, 31, 33, null, null],
data: [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ...(graph2?.lambda || []), null, null],
xAxisIndex: 0,
yAxisIndex: 2,
// data: Array(65)

查看文件

@ -158,6 +158,10 @@ export default {
loadChartConfig({
x_data: null,
y_data: this.dataList.map((i) => i.temp1),
},
{
gas: this.dataList.map((i) => i.press2),
lambda: this.dataList.map((i) => i.remark),
})
);
},