diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 347f79a62f..df82df9fd2 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -708,7 +708,9 @@ export default { table_item_font_color: '字体颜色', stripe: '斑马纹', start_angle: '起始角度', - end_angle: '结束角度' + end_angle: '结束角度', + style_priority: '样式优先级', + dashboard: '仪表盘' }, dataset: { datalist: '数据集', diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 743b6c10d4..af4c3051bd 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -93,7 +93,7 @@ {{ $t('chart.chart_type') }} - + - 样式优先级 + {{ $t('chart.style_priority') }} - 视图 - 仪表盘 + {{ $t('chart.chart') }} + {{ $t('chart.dashboard') }} @@ -476,7 +476,7 @@ export default { ele.filter = [] } }) - if (view.type.startsWith('pie') || view.type.startsWith('funnel')) { + if (view.type.startsWith('pie') || view.type.startsWith('funnel') || view.type.startsWith('gauge')) { if (view.yaxis.length > 1) { view.yaxis.splice(1, view.yaxis.length) }