mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 15:03:38 +08:00
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
Block a user