mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Merge pull request #3131 from Lighnat0r/master
Use parser options in getPixelForValue for time scale
This commit is contained in:
commit
b33aff2091
@ -330,7 +330,7 @@ module.exports = function(Chart) {
|
||||
var me = this;
|
||||
if (!value || !value.isValid) {
|
||||
// not already a moment object
|
||||
value = moment(me.getRightValue(value));
|
||||
value = me.parseTime(me.getRightValue(value));
|
||||
}
|
||||
var labelMoment = value && value.isValid && value.isValid() ? value : me.getLabelMoment(datasetIndex, index);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user