From 74653a0529afd30582e97dd06b218ca80d870f35 Mon Sep 17 00:00:00 2001 From: kener Date: Fri, 8 Nov 2013 11:45:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B7=E8=BE=BE=E5=9B=BE=E6=96=87=E5=AD=97bu?= =?UTF-8?q?g=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix this http://www.oschina.net/question/1396130_132065 --- src/component/polar.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/component/polar.js b/src/component/polar.js index 6aef59409..fd3853b15 100644 --- a/src/component/polar.js +++ b/src/component/polar.js @@ -140,12 +140,14 @@ define( var precision = self.deepQuery(_queryTarget, 'precision'); for (var i = 0; i < indicator.length; i ++) { - axisLabel = self.deepQuery([indicator[i], item, option], - 'axisLabel'); + axisLabel = self.deepQuery( + [indicator[i], item, option], 'axisLabel' + ); if (axisLabel.show) { style = {}; - style.styleFont = self.getFont(); + style.textFont = self.getFont(); + //Todo: bug fix style = zrUtil.merge(style, axisLabel); style.lineWidth = style.width; @@ -211,8 +213,8 @@ define( style = {}; - style.styleFont = self.getFont(textStyle); - + style.textFont = self.getFont(textStyle); + style.color = textStyle.color; if (typeof name.formatter == 'function') { style.text = name.formatter(indicator[i].text, i); -- GitLab