Merge pull request #13876 from ulleo/dev-v2

feat(图表): 区间条形图的开始时间默认按升序排列
This commit is contained in:
xuwei-fit2cloud
2024-12-06 11:27:42 +08:00
committed by GitHub

View File

@@ -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