limit y axis to integer ticks

This commit is contained in:
Damien Elmes 2012-05-14 05:12:59 +09:00
parent f739d7ac38
commit d47b0726b0

View file

@ -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>';