Commit 6bc0dfc2 authored by 谢章伟's avatar 谢章伟

人员柱状图y轴最大刻度取整

parent 46e9b745
......@@ -446,7 +446,7 @@ export default {
sery.data.push(0);
}
var maxData = Math.max.apply(null, sery.data);
var maxY=maxData*1.2;
var maxY=Math.floor(maxData*1.2);
this.people_options.yAxis.max=maxY;
this.people_options.series=[];
this.people_options.series.push(sery);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment