This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch fix-9901
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 4813cc2f06680b4dca127993b7111f51d9a2b819
Author: Ovilia <[email protected]>
AuthorDate: Wed Mar 6 12:20:19 2019 +0800

    fix: axis name align not working bug #9901
---
 src/component/axis/AxisBuilder.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/component/axis/AxisBuilder.js 
b/src/component/axis/AxisBuilder.js
index 9e66ea1..cf4a22b 100644
--- a/src/component/axis/AxisBuilder.js
+++ b/src/component/axis/AxisBuilder.js
@@ -364,8 +364,10 @@ var builders = {
             textFont: textFont,
             textFill: textStyleModel.getTextColor()
                 || axisModel.get('axisLine.lineStyle.color'),
-            textAlign: labelLayout.textAlign,
-            textVerticalAlign: labelLayout.textVerticalAlign
+            textAlign: textStyleModel.get('align')
+                || labelLayout.textAlign,
+            textVerticalAlign: textStyleModel.get('verticalAlign')
+                || labelLayout.textVerticalAlign
         });
 
         if (axisModel.get('triggerEvent')) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to