FIX: prevents y-axis labels to show useless/wrong values
This commit is contained in:
parent
23ae2023ef
commit
af465effef
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue