feat(图表): 区间条形图的开始时间默认按升序排列

This commit is contained in:
ulleo 2024-12-06 10:50:50 +08:00
parent 5dd3d556b5
commit f60fa38f3b

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