mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 20:59:08 +02:00
commit
5fe1914e17
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user