This commit is contained in:
Evert Timberg 2016-02-27 08:58:27 -05:00
parent 6ad533ce2b
commit b812bcc8a5

View File

@ -270,6 +270,8 @@ module.exports = function(Chart) {
},
getPixelForValue: function(value, index, datasetIndex, includeOffset) {
var labelMoment = this.getLabelMoment(datasetIndex, index);
if (labelMoment) {
var offset = labelMoment.diff(this.firstTick, this.tickUnit, true);
var decimal = offset / this.tickRange;
@ -287,6 +289,7 @@ module.exports = function(Chart) {
return this.top + Math.round(heightOffset);
}
}
},
parseTime: function(label) {
// Date objects