From 6fedd9c5aba097c07636d396b0a5ff524fa1ce16 Mon Sep 17 00:00:00 2001 From: kener Date: Tue, 10 Jun 2014 18:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=95=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/example/map11.html | 38 ++++++++++++++++++++++++++++---------- src/chart/base.js | 6 +++++- src/util/ecEffect.js | 2 +- 3 files changed, 34 insertions(+), 12 deletions(-) diff --git a/doc/example/map11.html b/doc/example/map11.html index a3edb6e539..7a078f8e03 100644 --- a/doc/example/map11.html +++ b/doc/example/map11.html @@ -117,7 +117,7 @@ min : 0, max : 100, calculable : true, - color: ['red','orange','yellow','lightgreen'], + color: ['#ff3333', 'orange', 'yellow','lime','aqua'], textStyle:{ color:'#fff' } @@ -429,12 +429,18 @@ smooth:true, effect : { show: true, - size: 3, - shadowColor: 'yellow' + scaleSize: 1, + period: 30, + color: '#fff', + shadowBlur: 10 }, itemStyle : { normal: { - borderWidth:1 + borderWidth:1, + lineStyle: { + type: 'solid', + shadowBlur: 10 + } } }, data : [ @@ -487,12 +493,18 @@ smooth:true, effect : { show: true, - size: 3, - shadowColor: 'aqua' + scaleSize: 1, + period: 30, + color: '#fff', + shadowBlur: 10 }, itemStyle : { normal: { - borderWidth:1 + borderWidth:1, + lineStyle: { + type: 'solid', + shadowBlur: 10 + } } }, data : [ @@ -545,12 +557,18 @@ smooth:true, effect : { show: true, - size: 3, - shadowColor: 'lime' + scaleSize: 1, + period: 30, + color: '#fff', + shadowBlur: 10 }, itemStyle : { normal: { - borderWidth:1 + borderWidth:1, + lineStyle: { + type: 'solid', + shadowBlur: 10 + } } }, data : [ diff --git a/src/chart/base.js b/src/chart/base.js index aab3107f82..11ccd1459d 100644 --- a/src/chart/base.js +++ b/src/chart/base.js @@ -838,7 +838,11 @@ define(function (require) { yEnd : yEnd, // 坐标 brushType : 'both', lineType : nlineStyle.type, - shadowColor : nlineStyle.shadowColor, + shadowColor : nlineStyle.shadowColor + || nlineStyle.color + || normal.borderColor + || normal.color + || color, shadowBlur: nlineStyle.shadowBlur, shadowOffsetX: nlineStyle.shadowOffsetX, shadowOffsetY: nlineStyle.shadowOffsetY, diff --git a/src/util/ecEffect.js b/src/util/ecEffect.js index 80752c60c7..85f196af50 100644 --- a/src/util/ecEffect.js +++ b/src/util/ecEffect.js @@ -157,7 +157,7 @@ define(function (require) { function line(zr, effectList, shape, zlevel) { var effect = shape.effect; var color = effect.color || shape.style.strokeColor || shape.style.color; - var shadowColor = effect.shadowColor || color; + var shadowColor = effect.shadowColor || shape.style.strokeColor || color; var size = shape.style.lineWidth * effect.scaleSize; var shadowBlur = typeof effect.shadowBlur != 'undefined' ? effect.shadowBlur : size;