添加mqtt链接展示
This commit is contained in:
@@ -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 是数组还是对象
|
||||
|
||||
Reference in New Issue
Block a user