fix tooltips

This commit is contained in:
Qiuxia Fan 2022-03-31 16:31:36 +08:00
parent 0437133917
commit 4504a9d078

View File

@ -150,12 +150,14 @@ function getOption() {
color: "#ccc",
},
enterable: true,
confine: true,
extraCssText: "max-height: 300px; overflow: auto; border: none;",
};
const tips = {
formatter(params: any) {
return `${params[0].value[1]}`;
},
confine: true,
extraCssText: `height: 20px; padding:0 2px;`,
trigger: "axis",
textStyle: {