|
@@ -189,12 +189,12 @@ export default defineComponent({
|
|
|
},
|
|
|
},
|
|
|
title: {
|
|
|
- text: sameSideIndex !== index ? '' : `单位:${item.Unit}`,
|
|
|
+ text: sameSideIndex !== index ? '' : `${item.Unit}`,
|
|
|
// text: null,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
y: -15,
|
|
|
- offset: 0,
|
|
|
+ offset: -(10 * item.Unit.length),
|
|
|
},
|
|
|
opposite: item.IsAxis === 0,
|
|
|
reversed: item.IsOrder,
|
|
@@ -333,12 +333,12 @@ export default defineComponent({
|
|
|
},
|
|
|
},
|
|
|
title: {
|
|
|
- text: sameSideIndex !== index ? '' : `单位:${item.Unit}`,
|
|
|
+ text: sameSideIndex !== index ? '' : `${item.Unit}`,
|
|
|
// text: null,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
y: -15,
|
|
|
- offset: 0,
|
|
|
+ offset: -(10 * item.Unit.length),
|
|
|
},
|
|
|
opposite: item.IsAxis === 0,
|
|
|
reversed: item.IsOrder,
|
|
@@ -461,12 +461,12 @@ export default defineComponent({
|
|
|
x: -5,
|
|
|
},
|
|
|
title: {
|
|
|
- text: `单位:${chartData.Unit}`,
|
|
|
+ text: `${chartData.Unit}`,
|
|
|
// text: null,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
y: -15,
|
|
|
- offset: 0,
|
|
|
+ offset: -(10 * chartData.Unit.length),
|
|
|
},
|
|
|
max: Number(chartData.MaxData),
|
|
|
min: Number(chartData.MinData),
|
|
@@ -513,12 +513,12 @@ export default defineComponent({
|
|
|
x: -5,
|
|
|
},
|
|
|
title: {
|
|
|
- text: `单位:${chartData.Unit}`,
|
|
|
+ text: `${chartData.Unit}`,
|
|
|
// text: null,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
y: -15,
|
|
|
- offset: 0,
|
|
|
+ offset: -(10 * chartData.Unit.length),
|
|
|
},
|
|
|
max: Number(chartData.MaxData),
|
|
|
min: Number(chartData.MinData),
|
|
@@ -652,12 +652,12 @@ export default defineComponent({
|
|
|
//y轴
|
|
|
let yAxis = {
|
|
|
title: {
|
|
|
- text: `单位:${dataList[1].Unit}`,
|
|
|
+ text: `${dataList[1].Unit}`,
|
|
|
// text: null,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
y: -5,
|
|
|
- offset: -20,
|
|
|
+ offset: -(10 * dataList[1].Unit.length),
|
|
|
},
|
|
|
labels: {
|
|
|
formatter: function (ctx: any) {
|
|
@@ -705,7 +705,7 @@ export default defineComponent({
|
|
|
xAxis: {
|
|
|
...scatterXAxis,
|
|
|
title: {
|
|
|
- text: `单位:${dataList[0].Unit}`,
|
|
|
+ text: `${dataList[0].Unit}`,
|
|
|
// text: null,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|