|
@@ -164,7 +164,7 @@ const setDefaultLineOptions = () => {
|
|
|
},
|
|
|
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
|
|
@@ -342,7 +342,7 @@ const setSeasonOptions = () => {
|
|
|
text:language.value=='ch'?`${chartData.Unit}`:chartData.UnitEn,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
x: 0,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false,
|
|
@@ -462,7 +462,7 @@ const setStackOrCombinChart = () => {
|
|
|
// text: null,
|
|
|
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,
|
|
@@ -754,7 +754,7 @@ const setBarChart = () => {
|
|
|
text: language.value==='ch' ? chartInfo.Unit : chartInfo.UnitEn,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
x:0,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false,
|
|
@@ -1067,7 +1067,7 @@ const setCommodityChart = () => {
|
|
|
text: language.value === 'ch' ? commodityEdbList[0].Unit : commodityEdbList[0].UnitEn,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false,
|
|
|
style:{
|
|
@@ -1241,7 +1241,7 @@ const initRelevanceChartData=(data)=>{
|
|
|
text: language.value=='ch'?'相关性系数':'Correlation coefficient',
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
textAlign: 'left',
|
|
|
reserveSpace: false,
|
|
|
style:{
|
|
@@ -1356,7 +1356,7 @@ const setStatisticFrequency = () => {
|
|
|
text: language.value === 'ch' ? item.Unit : item.UnitEn,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
- y: -15,
|
|
|
+ y: -12,
|
|
|
reserveSpace: false,
|
|
|
style:{
|
|
|
...chartTheme&&chartTheme.yAxisOptions.style
|
|
@@ -1775,6 +1775,13 @@ const setAxisPlotAreas = (axis: number, axisType: any = null) => {
|
|
|
toMarkerValue = Number(_.toValue);
|
|
|
}
|
|
|
|
|
|
+ //默认label有些偏移 重新归正下
|
|
|
+ let positionMapValue = {
|
|
|
+ 'top': 12,
|
|
|
+ 'middle': 0,
|
|
|
+ 'bottom': -10
|
|
|
+ }
|
|
|
+
|
|
|
return {
|
|
|
from: fromMarkerValue,
|
|
|
to: toMarkerValue,
|
|
@@ -1782,6 +1789,7 @@ const setAxisPlotAreas = (axis: number, axisType: any = null) => {
|
|
|
label: {
|
|
|
text: _.text || "",
|
|
|
verticalAlign: _.textPosition,
|
|
|
+ y: positionMapValue[_.textPosition],
|
|
|
style: {
|
|
|
color: _.textColor,
|
|
|
fontSize: _.textFontSize,
|