修改图表

main
夜笙歌 5 months ago
parent 53c1f9bc1e
commit a1164fcd3e

@ -347,7 +347,7 @@ export default {
const {data} = await dnbInstantList(query) const {data} = await dnbInstantList(query)
let option1 = { let option1 = {
title:{ title:{
text:'电流信息', text:'电流曲线',
x:'center' x:'center'
}, },
grid: { grid: {
@ -418,7 +418,7 @@ export default {
], ],
series: [ series: [
{ {
name: "A电流", name: "A电流",
type: "line", type: "line",
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
@ -437,7 +437,7 @@ export default {
data: data.map(e=>e.ia), data: data.map(e=>e.ia),
}, },
{ {
name: "B电流", name: "B电流",
type: "line", type: "line",
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
@ -456,7 +456,7 @@ export default {
data: data.map(e=>e.ib), data: data.map(e=>e.ib),
}, },
{ {
name: "C电流", name: "C电流",
type: "line", type: "line",
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
@ -477,7 +477,7 @@ export default {
} }
let option2 = { let option2 = {
title:{ title:{
text:'电压信息', text:'电压曲线',
x:'center' x:'center'
}, },
grid: { grid: {
@ -549,7 +549,7 @@ export default {
], ],
series: [ series: [
{ {
name: "A电压", name: "A电压",
type: "line", type: "line",
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
@ -568,7 +568,7 @@ export default {
data: data.map(e=>e.va), data: data.map(e=>e.va),
}, },
{ {
name: "B电压", name: "B电压",
type: "line", type: "line",
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //
@ -587,7 +587,7 @@ export default {
data: data.map(e=>e.vb), data: data.map(e=>e.vb),
}, },
{ {
name: "C电压", name: "C电压",
type: "line", type: "line",
smooth: true, //线 smooth: true, //线
showAllSymbol: true, // showAllSymbol: true, //

Loading…
Cancel
Save