mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
feat(图表): 区间条形图的开始时间默认按升序排列
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user