|
@@ -124,7 +124,7 @@ export default {
|
|
|
},
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
x: (item.IsAxis===0 && rightTwoIndex>-1) ? -chartData[rightTwoIndex].Unit.length*12 : 0,
|
|
|
textAlign: item.IsAxis===1 ? 'left' : 'right',
|
|
|
reserveSpace: false
|
|
@@ -285,7 +285,7 @@ export default {
|
|
|
},
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
x: (item.IsAxis===0 && rightTwoIndex>-1) ? -chartData[rightTwoIndex].Unit.length*12 : 0,
|
|
|
textAlign: item.IsAxis===1 ? 'left' : 'right',
|
|
|
reserveSpace: false
|
|
@@ -443,7 +443,7 @@ export default {
|
|
|
// text: null,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
x: 0,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false
|
|
@@ -563,7 +563,7 @@ export default {
|
|
|
},
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
offset: -(12 * chartData[1].Unit.length),
|
|
|
},
|
|
|
labels: {
|
|
@@ -678,7 +678,7 @@ export default {
|
|
|
textEn: this.chartInfo.UnitEn,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
x:0,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false,
|
|
@@ -782,7 +782,7 @@ export default {
|
|
|
textEn: this.commodityEdbList[0].Unit?(this.commodityEdbList[0].UnitEn||'英文单位'):'',
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false,
|
|
|
style:{
|
|
@@ -998,7 +998,7 @@ export default {
|
|
|
textEn: 'Correlation coefficient',
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false,
|
|
|
style:{
|
|
@@ -1299,7 +1299,7 @@ export default {
|
|
|
textEn:item.UnitEn||item.Unit,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
reserveSpace: false,
|
|
|
style:{
|
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
@@ -1664,6 +1664,13 @@ export default {
|
|
|
toMarkerValue = Number(_.toValue);
|
|
|
}
|
|
|
|
|
|
+ //默认label有些偏移 重新归正下
|
|
|
+ let positionMapValue = {
|
|
|
+ 'top': 12,
|
|
|
+ 'middle': 0,
|
|
|
+ 'bottom': -10
|
|
|
+ }
|
|
|
+
|
|
|
return {
|
|
|
from: fromMarkerValue,
|
|
|
to: toMarkerValue,
|
|
@@ -1674,7 +1681,8 @@ export default {
|
|
|
style: {
|
|
|
color: _.textColor,
|
|
|
fontSize: _.textFontSize
|
|
|
- }
|
|
|
+ },
|
|
|
+ y: positionMapValue[_.textPosition]
|
|
|
}
|
|
|
}
|
|
|
})
|