添加mqtt链接展示

This commit is contained in:
GGJ
2025-04-28 15:51:30 +08:00
parent adc9b5a955
commit 9538b69310
4 changed files with 211 additions and 63 deletions

View File

@@ -13,8 +13,6 @@ import 'echarts-liquidfill'
import 'echarts/lib/component/dataZoom'
import { color, gradeColor3 } from './color'
import { useConfig } from '@/stores/config'
import { saveAs } from 'file-saver'
import { t } from 'vxe-table'
// import { nextTick } from 'process'
const config = useConfig()
@@ -119,7 +117,15 @@ const initChart = () => {
height: 13,
bottom: '20px',
end: 100
}
},
// {
// show: true,
// yAxisIndex: 0,
// width: 12,
// handleSize: 8,
// showDataShadow: false,
// right: 12
// }
],
color: props.options?.color || color,
series: props.options?.series,
@@ -177,7 +183,7 @@ const handlerYAxis = () => {
color: '#000',
fontSize: 14,
formatter: function (value) {
return value.toFixed(0) // 格式化显示为一位小数
return parseFloat(value.toFixed(1)) // 格式化显示为一位小数
}
},
splitLine: {
@@ -217,9 +223,9 @@ const handlerXAxis = () => {
// textStyle: {
fontFamily: 'dinproRegular',
color: '#000',
fontSize: '12',
fontSize: '12'
// }
},
}
// boundaryGap: false,
}
// props.options?.xAxis 是数组还是对象