Convert to string the action key when the type of x axis is date or datetime

Closes #13440
(grafted from 937d9588e1e5b4e538cbbea097104e748b356a0e)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2024-08-07 17:25:45 +02:00
parent ae32cd004d
commit 529ca27e4e
+9 -1
View File
@@ -248,7 +248,15 @@
}, ctx, false);
},
_action_key: function(data) {
return data.x;
var x = data.x;
var type = this.view.screen.model.fields[this.xfield.name]
.description.type;
if (x && (type == 'datetime')) {
x = Sao.DateTime(x).toString();
} else if (x && (type == 'date')) {
x = Sao.Date(x).toString();
}
return x;
}
});