Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labelInterpolationFnc changed/broken for 0.96 #621

Closed
rstudner opened this issue Feb 22, 2016 · 1 comment
Closed

labelInterpolationFnc changed/broken for 0.96 #621

rstudner opened this issue Feb 22, 2016 · 1 comment

Comments

@rstudner
Copy link

For 0.95 and prior I'd do this:

    const divider = Math.floor(processedChartData.labels.length / 5);
.
.
.
      axisX: {
        labelInterpolationFnc: function skipLabels(value, index) {
          return index % divider === 0 ? value : null;
        },
      },

This would allow me to skip xAxis labels so they wouldn't be insanely over crowded.

Now, this will put the string "null" for every place that in the past, was skipped:
screen shot 2016-02-22 at 8 52 11 am

@gionkunz
Copy link
Collaborator

Okay, this is a bug that was introduced with b7c16dd . I'll do a quick fix and publish 0.9.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants