FIX: prevents y-axis labels to show useless/wrong values

This commit is contained in:
Joffrey JAFFEUX 2018-10-30 09:58:03 +01:00 committed by GitHub
parent 23ae2023ef
commit af465effef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -89,7 +89,12 @@ export default Ember.Component.extend({
yAxes: [
{
display: true,
ticks: { callback: label => number(label) }
ticks: {
userCallback: label => {
if (Math.floor(label) === label) return label;
},
callback: label => number(label)
}
}
],
xAxes: [