Skip to content

Commit 7ebca80

Browse files
committed
Fix decimal Y-axes issue
fix nnnick/chartjs#2001 fix #61 Implemented the following code: yAxes:[{ ticks:{ callback:function(value){ return Number(value).toFixed(3); } } }],
1 parent 7c06d2e commit 7ebca80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ChartJS/lib/charts.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4685,6 +4685,10 @@
46854685
id: 'x-axis-0'
46864686
}],
46874687
yAxes: [{
4688+
ticks:{
4689+
callback:function(value){
4690+
return Number(value).toFixed(3);
4691+
}},
46884692
type: "linear",
46894693
id: 'y-axis-0'
46904694
}],

0 commit comments

Comments
 (0)