diff --git a/core/core-backend/src/main/java/io/dataease/chart/charts/impl/mix/StackMixHandler.java b/core/core-backend/src/main/java/io/dataease/chart/charts/impl/mix/StackMixHandler.java index 4d2ff9883d..3eb7bc9ebb 100644 --- a/core/core-backend/src/main/java/io/dataease/chart/charts/impl/mix/StackMixHandler.java +++ b/core/core-backend/src/main/java/io/dataease/chart/charts/impl/mix/StackMixHandler.java @@ -31,7 +31,9 @@ public class StackMixHandler extends MixHandler { axisMap.put(ChartAxis.yAxisExt, view.getYAxisExt()); //去除除了x轴以外的排序 axisMap.forEach((k, v) -> { - v.forEach(x -> x.setSort("none")); + if (!ChartAxis.extStack.equals(k)) { + v.forEach(x -> x.setSort("none")); + } }); axisMap.put(ChartAxis.extLabel, view.getExtLabel()); axisMap.put(ChartAxis.extTooltip, view.getExtTooltip()); diff --git a/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue b/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue index ca5213d124..42c6c4d940 100644 --- a/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue +++ b/core/core-frontend/src/views/chart/components/editor/drag-item/DimensionItem.vue @@ -235,7 +235,8 @@ onMounted(() => { @click.prevent v-if=" !chart.type.includes('chart-mix') || - (chart.type.includes('chart-mix') && type === 'dimension') + (chart.type.includes('chart-mix') && + (type === 'dimension' || type === 'dimensionStack')) " > { v-if="item.deType === 1" :divided=" !chart.type.includes('chart-mix') || - (chart.type.includes('chart-mix') && type === 'dimension') + (chart.type.includes('chart-mix') && + (type === 'dimension' || type === 'dimensionStack')) " > { class="menu-item-padding" :divided=" !chart.type.includes('chart-mix') || - (chart.type.includes('chart-mix') && type === 'dimension') + (chart.type.includes('chart-mix') && + (type === 'dimension' || type === 'dimensionStack')) " :command="beforeClickItem('rename')" >