mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FIX: prevents y-axis labels to show useless/wrong values
This commit is contained in:
@ -89,7 +89,12 @@ export default Ember.Component.extend({
|
|||||||
yAxes: [
|
yAxes: [
|
||||||
{
|
{
|
||||||
display: true,
|
display: true,
|
||||||
ticks: { callback: label => number(label) }
|
ticks: {
|
||||||
|
userCallback: label => {
|
||||||
|
if (Math.floor(label) === label) return label;
|
||||||
|
},
|
||||||
|
callback: label => number(label)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
xAxes: [
|
xAxes: [
|
||||||
|
Reference in New Issue
Block a user