Skip to content

labelMoment is undefined #2009

@jhiemer

Description

@jhiemer

Hi,
perhaps this is a stupid question, but using Chart.js with Moment and multiple Series, I sometimes do get labelMoment is undefined, which can easily be fixed via:

    getPixelForValue: function(value, index, datasetIndex, includeOffset) {
            var labelMoment = this.getLabelMoment(datasetIndex, index);
      if (labelMoment) {

in line https://github.com/nnnick/Chart.js/blob/v2.0-dev/src/scales/scale.time.js#L269.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions