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:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user