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

View File

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