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

Can't find the oppurtunity to configure axis of values #263

Closed
ddydeveloper opened this issue Nov 27, 2017 · 3 comments
Closed

Can't find the oppurtunity to configure axis of values #263

ddydeveloper opened this issue Nov 27, 2017 · 3 comments

Comments

@ddydeveloper
Copy link

ddydeveloper commented Nov 27, 2017

Expected Behavior

I want to display just simple numbers, but I didn't find the opportunity to configure this. Is it possible to implement this feature? Maybe I just can't find the good solution.
If I have to configure this It would be great.

Actual Behavior

image

There are a lot of fractional numbers which can't be hidden.

Environment

  • vue.js version: "^2.5.8"
  • vue-chart.js version: "^3.0.2"
  • npm version: "5.5.1"
@ddydeveloper ddydeveloper changed the title Can't find the oppurtunity to configure values axis Can't find the oppurtunity to configure axis of values Nov 27, 2017
@apertureless
Copy link
Owner

Hi @ddydeveloper

you have custom callbacks in the xAxis object.
Check out the chart.js docs for this:

http://www.chartjs.org/docs/latest/axes/#callbacks

And you can create your own custom ticks formats mentioned in issue #147

http://www.chartjs.org/docs/latest/axes/labelling.html#creating-custom-tick-formats

@ddydeveloper
Copy link
Author

@apertureless as you said, it is duplicate. Thanks for help! Close the issue.

@ergonomicus
Copy link

@ddydeveloper Well, how to do it? Can you paste some example?

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