mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
limit y axis to integer ticks
This commit is contained in:
parent
f739d7ac38
commit
d47b0726b0
1 changed files with 4 additions and 0 deletions
|
@ -686,6 +686,10 @@ $(function () {
|
|||
return val.toFixed(0)+conf.timeTicks;
|
||||
}
|
||||
}
|
||||
conf.yaxis.minTickSize = 1;
|
||||
conf.yaxis.tickFormatter = function (val, axis) {
|
||||
return val.toFixed(0);
|
||||
}
|
||||
if (conf.series.pie) {
|
||||
conf.series.pie.label.formatter = function(label, series){
|
||||
return '<div class=pielabel>'+Math.round(series.percent)+'%%</div>';
|
||||
|
|
Loading…
Reference in a new issue