mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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;
|
return val.toFixed(0)+conf.timeTicks;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
conf.yaxis.minTickSize = 1;
|
||||||
|
conf.yaxis.tickFormatter = function (val, axis) {
|
||||||
|
return val.toFixed(0);
|
||||||
|
}
|
||||||
if (conf.series.pie) {
|
if (conf.series.pie) {
|
||||||
conf.series.pie.label.formatter = function(label, series){
|
conf.series.pie.label.formatter = function(label, series){
|
||||||
return '<div class=pielabel>'+Math.round(series.percent)+'%%</div>';
|
return '<div class=pielabel>'+Math.round(series.percent)+'%%</div>';
|
||||||
|
|
Loading…
Reference in a new issue