mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
feat(图表): 区间条形图的开始时间默认按升序排列
This commit is contained in:
parent
5dd3d556b5
commit
f60fa38f3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user