update chart

This commit is contained in:
Fine 2022-10-24 20:27:46 +08:00
parent 2e3375bbac
commit 2eb0cacc68
2 changed files with 14 additions and 9 deletions

View File

@ -105,16 +105,12 @@ function getOption() {
return { return {
color, color,
tooltip: { tooltip: {
trigger: "axis", trigger: "none",
zlevel: 1000, axisPointer: {
z: 60, type: "cross",
confine: true,
textStyle: {
fontSize: 13,
color: "#333", color: "#333",
backgroundColor: "rgba(255, 255, 255, 0.8)",
}, },
enterable: true,
extraCssText: "max-height: 300px; overflow: auto; border: none",
}, },
legend: { legend: {
type: "scroll", type: "scroll",
@ -134,6 +130,12 @@ function getOption() {
bottom: 5, bottom: 5,
containLabel: true, containLabel: true,
}, },
axisPointer: {
label: {
color: "#333",
backgroundColor: "rgba(255, 255, 255, 0.8)",
},
},
xAxis: { xAxis: {
type: "category", type: "category",
axisTick: { axisTick: {

View File

@ -121,6 +121,8 @@ function getOption() {
trigger: "none", trigger: "none",
axisPointer: { axisPointer: {
type: "cross", type: "cross",
color: "#333",
backgroundColor: "rgba(255, 255, 255, 0.8)",
}, },
// trigger: "axis", // trigger: "axis",
// textStyle: { // textStyle: {
@ -160,7 +162,8 @@ function getOption() {
}, },
axisPointer: { axisPointer: {
label: { label: {
backgroundColor: "#777", color: "#333",
backgroundColor: "rgba(255, 255, 255, 0.8)",
}, },
}, },
grid: { grid: {