done 1019 again

Este commit está contenido en:
lb 2023-10-19 16:22:56 +08:00
padre 82171c8ea8
commit 6b978fa93b
Se han modificado 2 ficheros con 11 adiciones y 4 borrados

Ver fichero

@ -169,6 +169,7 @@ export default ({ x_data, y_data }, graph2) => {
dataZoom: { dataZoom: {
type: 'inside' type: 'inside'
}, },
series: [ series: [
{ {
id: 'temp-series', id: 'temp-series',
@ -186,15 +187,17 @@ export default ({ x_data, y_data }, graph2) => {
name: '燃气消耗量(m³)', name: '燃气消耗量(m³)',
xAxisIndex: 1, xAxisIndex: 1,
yAxisIndex: 1, yAxisIndex: 1,
data: Array(65) data: graph2?.gas || [],
.fill(1) // data: Array(65)
.map((val) => Math.floor(Math.random() * 128)), // .fill(1)
// .map((val) => Math.floor(Math.random() * 128)),
type: "line", type: "line",
}, },
{ {
id: 'lambda-series', id: 'lambda-series',
name: 'lambda', 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, xAxisIndex: 0,
yAxisIndex: 2, yAxisIndex: 2,
// data: Array(65) // data: Array(65)

Ver fichero

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