|
@@ -2096,19 +2096,27 @@ const setAxisPlotAreas = (axis,axisType) => {
|
|
|
toMarkerValue = Number(_.toValue);
|
|
|
}
|
|
|
|
|
|
+ //默认label有些偏移 重新归正下
|
|
|
+ let positionMapValue = {
|
|
|
+ 'top': 12,
|
|
|
+ 'middle': 0,
|
|
|
+ 'bottom': -10
|
|
|
+ }
|
|
|
+
|
|
|
return {
|
|
|
- from: fromMarkerValue,
|
|
|
- to: toMarkerValue,
|
|
|
- color: _.color,
|
|
|
- label: {
|
|
|
- text: _.text||'',
|
|
|
- verticalAlign: _.textPosition,
|
|
|
- style: {
|
|
|
- color: _.textColor,
|
|
|
- fontSize: _.textFontSize
|
|
|
+ from: fromMarkerValue,
|
|
|
+ to: toMarkerValue,
|
|
|
+ color: _.color,
|
|
|
+ label: {
|
|
|
+ text: _.text||'',
|
|
|
+ verticalAlign: _.textPosition,
|
|
|
+ y: positionMapValue[_.textPosition],
|
|
|
+ style: {
|
|
|
+ color: _.textColor,
|
|
|
+ fontSize: _.textFontSize
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
})
|
|
|
|
|
|
return plotBands
|