You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/07/21 13:21:50 UTC
[echarts] 01/01: fix(radar): fix radar symbol border is scaled
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch radar-fix-border
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit a69e1afbdde2a047ef3fe92de670fa34d5178832
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Jul 21 21:13:49 2021 +0800
fix(radar): fix radar symbol border is scaled
---
src/chart/radar/RadarView.ts | 1 +
test/radar.html | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/src/chart/radar/RadarView.ts b/src/chart/radar/RadarView.ts
index 3eb6da2..4eec08a 100644
--- a/src/chart/radar/RadarView.ts
+++ b/src/chart/radar/RadarView.ts
@@ -238,6 +238,7 @@ class RadarView extends ChartView {
else {
symbolPath.useStyle(itemStyle);
symbolPath.setColor(color);
+ symbolPath.style.strokeNoScale = true;
}
const pathEmphasisState = symbolPath.ensureState('emphasis');
diff --git a/test/radar.html b/test/radar.html
index ffb8ae6..64e4e31 100644
--- a/test/radar.html
+++ b/test/radar.html
@@ -76,6 +76,10 @@ under the License.
show: true
}
},
+ itemStyle: {
+ borderWidth: 3,
+ borderColor: '#fff'
+ },
// areaStyle: {normal: {}},
data : [
{
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org