diff --git a/frontend/src/components/canvas/components/Editor/Preview.vue b/frontend/src/components/canvas/components/Editor/Preview.vue
index d40a4ae3ed..488dd6381c 100644
--- a/frontend/src/components/canvas/components/Editor/Preview.vue
+++ b/frontend/src/components/canvas/components/Editor/Preview.vue
@@ -84,7 +84,7 @@ export default {
componentDataShow: [],
mainWidth: '100%',
mainHeight: '100%',
- searchCount: -1,
+ searchCount: 0,
chartDetailsVisible: false,
showChartInfo: {},
showChartTableInfo: {}
diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index 97b552de8f..8532718ef6 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -847,7 +847,8 @@ export default {
height: 'Height',
system_case: 'System',
custom_case: 'Custom',
- last_layer: 'This Is The Last Layer'
+ last_layer: 'This Is The Last Layer',
+ radar_size: 'Size'
},
dataset: {
sheet_warn: 'There are multiple sheet pages, and the first one is extracted by default',
diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js
index 79a40eaef3..16e2f4543b 100644
--- a/frontend/src/lang/tw.js
+++ b/frontend/src/lang/tw.js
@@ -846,7 +846,8 @@ export default {
height: '高度',
system_case: '系統方案',
custom_case: '自定義',
- last_layer: '當前已經是最後一級'
+ last_layer: '當前已經是最後一級',
+ radar_size: '大小'
},
dataset: {
sheet_warn: '有多個sheet頁面,默認抽取第一個',
diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js
index 56d071bb02..e2d201ea11 100644
--- a/frontend/src/lang/zh.js
+++ b/frontend/src/lang/zh.js
@@ -846,7 +846,8 @@ export default {
height: '高度',
system_case: '系统方案',
custom_case: '自定义',
- last_layer: '当前已经是最后一级'
+ last_layer: '当前已经是最后一级',
+ radar_size: '大小'
},
dataset: {
sheet_warn: '有多个 Sheet 页,默认抽取第一个',
diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js
index df765c00f0..fecf05878d 100644
--- a/frontend/src/views/chart/chart/chart.js
+++ b/frontend/src/views/chart/chart/chart.js
@@ -25,6 +25,7 @@ export const DEFAULT_SIZE = {
pieRoseRadius: 5,
funnelWidth: 80,
radarShape: 'polygon',
+ radarSize: 80,
tableTitleFontSize: 12,
tableItemFontSize: 12,
tableTitleHeight: 36,
diff --git a/frontend/src/views/chart/chart/radar/radar.js b/frontend/src/views/chart/chart/radar/radar.js
index cf1e9b37a1..56e6ec55d1 100644
--- a/frontend/src/views/chart/chart/radar/radar.js
+++ b/frontend/src/views/chart/chart/radar/radar.js
@@ -12,6 +12,7 @@ export function baseRadarOption(chart_option, chart) {
// size
if (customAttr.size) {
chart_option.radar.shape = customAttr.size.radarShape
+ chart_option.radar.radius = (customAttr.size.radarSize ? customAttr.size.radarSize : 80) + '%'
}
// tooltip
if (customAttr.tooltip) {
diff --git a/frontend/src/views/chart/components/shape-attr/SizeSelector.vue b/frontend/src/views/chart/components/shape-attr/SizeSelector.vue
index 1dd5a77237..e39a28e73b 100644
--- a/frontend/src/views/chart/components/shape-attr/SizeSelector.vue
+++ b/frontend/src/views/chart/components/shape-attr/SizeSelector.vue
@@ -78,6 +78,9 @@
{{ $t('chart.circle') }}
+
+
+
@@ -220,6 +223,7 @@ export default {
this.sizeForm = customAttr.size
this.sizeForm.treemapWidth = this.sizeForm.treemapWidth ? this.sizeForm.treemapWidth : 80
this.sizeForm.treemapHeight = this.sizeForm.treemapHeight ? this.sizeForm.treemapHeight : 80
+ this.sizeForm.radarSize = this.sizeForm.radarSize ? this.sizeForm.radarSize : 80
}
}
},