diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 12c77740fc..4914074857 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -440,10 +440,14 @@ v-if="view.type === 'table-pivot'" class="padding-lr" > - + {{ $t('chart.table_pivot_row') }} / {{ $t('chart.dimension') }} + - + {{ $t('chart.drag_block_table_data_column') }} @@ -511,6 +515,10 @@ {{ $t('chart.dimension_or_quota') }} + - + {{ $t('chart.chart_group') }} + - + {{ $t('chart.drag_block_table_data_column') }} @@ -654,6 +666,10 @@ }} / {{ $t('chart.quota') }} + - + {{ $t('chart.drag_block_value_axis_ext') }} / {{ $t('chart.quota') }} + - + {{ $t('chart.stack_item') }} / {{ $t('chart.dimension') }} + - + {{ $t('chart.bubble_size') }} / {{ $t('chart.quota') }} @@ -801,6 +825,10 @@ style="cursor: pointer;color: #606266;" /> + { }) + }, + clearData(data) { + this.view[data] = [] + this.calcData(true) } } } @@ -3713,4 +3745,19 @@ span { font-weight: 400 !important; } +.data-area-label{ + text-align: left; + position: relative; + width: 100%; + display: inline-block; +} + +.data-area-clear{ + position: absolute; + top: 4px; + right: 6px; + color: rgb(135, 141, 159); + cursor: pointer; + z-index: 1; +}