diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index fdc9d9344a..f4c8efa559 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -673,6 +673,9 @@ const addAxis = (e, axis: AxisType) => { if (list && list.length > 0) { let valid = true for (let i = 0; i < list.length; i++) { + if (list[i].groupType === 'd' && list[i].deType === 1) { + list[i].sort = 'asc' + } if (!(list[i].groupType === 'q' || (list[i].groupType === 'd' && list[i].deType === 1))) { list.splice(i, 1) valid = false