Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Jul 6, 2017
1 parent 4324076 commit 4feace4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/coord/radar/RadarModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ 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
var iNameTextStyle = nameTextStyle;
if(indicatorOpt.color != null) {
iNameTextStyle = zrUtil.defaults({color: indicatorOpt.color}, nameTextStyle);
}
// Use same configuration
indicatorOpt = zrUtil.merge(zrUtil.clone(indicatorOpt), {
Expand Down

0 comments on commit 4feace4

Please sign in to comment.