done 1019 again

This commit is contained in:
lb 2023-10-19 16:22:56 +08:00
rodzic 82171c8ea8
commit 6b978fa93b
2 zmienionych plików z 11 dodań i 4 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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),
})
);
},