This commit is contained in:
张宁 2024-05-26 21:17:54 +08:00
parent 3984d334de
commit 2db21bf40d
1 changed files with 19 additions and 11 deletions

View File

@ -40,6 +40,14 @@ const setOption = async (xData: any[], yData: any[]) => {
color: "#fff", color: "#fff",
fontWeight: "500", fontWeight: "500",
}, },
axisPointer: {
type: 'line',
lineStyle: {
color: 'rgb(0, 148, 168)',
type: 'solid',
extraCssText: 'height:0;',
},
},
}, },
yAxis: { yAxis: {
type: "value", type: "value",
@ -73,7 +81,7 @@ const setOption = async (xData: any[], yData: any[]) => {
show: false, show: false,
left: "10px", left: "10px",
right: "30px", right: "30px",
bottom: "0px", bottom: "10px",
top: "30px", top: "30px",
containLabel: true, containLabel: true,
// borderColor: "#1F63A3", // borderColor: "#1F63A3",
@ -102,13 +110,13 @@ const setOption = async (xData: any[], yData: any[]) => {
}, },
label: { label: {
color: "#09CAF3", color: "#09CAF3",
backgroundColor: "rgba(9,202,243,0.1)", fontSize: '16',
// backgroundColor: "rgba(9,202,243,0.1)",
borderRadius: 6, // borderRadius: 6,
borderColor: "rgba(9,202,243,.5)", // borderColor: "rgba(9,202,243,.5)",
padding: [7, 14], // padding: [7, 14],
// formatter: "2{c}", // formatter: "2{c}",
borderWidth: 0.5, // borderWidth: 0.5,
}, },
}, },
{ {