Skip to content

labelMoment is undefined #2009

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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