提交 43240766 编写于 作者: S sushuang 提交者: GitHub

Merge pull request #6128 from sailaway/master

add Radar indicator can set different text color
......@@ -39,6 +39,11 @@ define(function (require) {
else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) {
indicatorOpt.max = 0;
}
var iNameTextStyle = nameTextStyle
if(indicatorOpt.color != null){
iNameTextStyle = zrUtil.clone(nameTextStyle)
iNameTextStyle.color = indicatorOpt.color
}
// Use same configuration
indicatorOpt = zrUtil.merge(zrUtil.clone(indicatorOpt), {
boundaryGap: boundaryGap,
......@@ -52,7 +57,7 @@ define(function (require) {
nameLocation: 'end',
nameGap: nameGap,
// min: 0,
nameTextStyle: nameTextStyle,
nameTextStyle: iNameTextStyle,
triggerEvent: triggerEvent
}, false);
if (!showName) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册