Browse Source

小数点异常

master
zhouhaibin 4 months ago
parent
commit
901dbc9d94
  1. 4
      src/views/projectBoard/childBoard/bas_bar.vue

4
src/views/projectBoard/childBoard/bas_bar.vue

@ -32,7 +32,7 @@ option = {
max: 1, max: 1,
axisLabel: { axisLabel: {
formatter: function (value, index) { formatter: function (value, index) {
return (value*100) + "%"; return (value*100).toFixed(0) + "%";
} }
} }
}, },
@ -48,7 +48,7 @@ option = {
show: true, show: true,
position: 'right', position: 'right',
formatter: function (params) { formatter: function (params) {
return (params.value*100) + "%"; return (params.value*100).toFixed(0) + "%";
} }

Loading…
Cancel
Save