Merge pull request #2588 from AllenJB/patch-1

Fix handling of moments by scale.getRightValue
This commit is contained in:
Evert Timberg 2016-05-18 13:59:33 -04:00
commit 725ee1cc31

View File

@ -396,7 +396,7 @@ module.exports = function(Chart) {
}
// If it is in fact an object, dive in one more level
if (typeof(rawValue) === "object") {
if (rawValue instanceof Date) {
if ((rawValue instanceof Date) || (rawValue.isValid)) {
return rawValue;
} else {
return getRightValue(this.isHorizontal() ? rawValue.x : rawValue.y);