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

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: [