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

making "labels" optional #425

Closed
yairEO opened this issue Aug 30, 2015 · 4 comments
Closed

making "labels" optional #425

yairEO opened this issue Aug 30, 2015 · 4 comments

Comments

@yairEO
Copy link

yairEO commented Aug 30, 2015

There is no need to in forcing the input of a labels array... simply inputting empty array items is time-consuming and redundant.

@gionkunz
Copy link
Collaborator

gionkunz commented Sep 4, 2015

Something we can definitely incorporate in a future version!

@rdpascua
Copy link

Or a way to hide the label

{
     xAxisLabel: false
}

@yairEO
Copy link
Author

yairEO commented Sep 23, 2015

hiding is nothing compared to the problem of forcing a dev to create useless empty Array with N length just so the script would work..

@gionkunz
Copy link
Collaborator

@rdpascua hiding is already possible. See http://gionkunz.github.io/chartist-js/api-documentation.html#chartistline-declaration-defaultoptions

  // Options for Y-Axis
  axisY: {
    // If labels should be shown or not
    showLabel: true,
    // If the axis grid should be drawn or not
    showGrid: true,
    // Interpolation function that allows you to intercept the value from the axis label
...

This task is really about the possibility of skipping labels at all from the configuration when the AutoScaleAxis is created from the default configuration.

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

No branches or pull requests

3 participants