试验管理

This commit is contained in:
lSun 2024-07-31 10:05:11 +08:00
parent 22cbcb4a92
commit 5c180f1e69
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ function echartsone(type){
confine: true, confine: true,
// 自定义内容格式化函数 // 自定义内容格式化函数
// 其他tooltip样式和行为 // 其他tooltip样式和行为
extraCssText: 'height:100px;', extraCssText: 'height:auto;',
backgroundColor: 'rgba(50,50,50,0.7)', // 背景颜色 backgroundColor: 'rgba(50,50,50,0.7)', // 背景颜色
borderColor: '#333', // 边框颜色 borderColor: '#333', // 边框颜色
borderWidth: 1, // 边框宽度 borderWidth: 1, // 边框宽度
@ -259,7 +259,7 @@ function echartstwo(){
option = { option = {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
extraCssText: 'width:210px;height:100px;', extraCssText: 'width:210px;height:auto;',
formatter: function (params) { formatter: function (params) {
if (!params || !params.name || !params.value) { if (!params || !params.name || !params.value) {
return ''; // 如果数据无效,则返回空字符串 return ''; // 如果数据无效,则返回空字符串