Browse Source

增加弹窗内小球保留两位小数

zhbyyy 1 year ago
parent
commit
92c86f9549
1 changed files with 3 additions and 0 deletions
  1. 3 0
      investment/js/investHome2.js

+ 3 - 0
investment/js/investHome2.js

@@ -815,6 +815,9 @@ let app = new Vue({
             },
             },
             label: {
             label: {
               normal: {
               normal: {
+                formatter: function (data) {
+                  return (data.value * 100).toFixed(2) +'%'
+                },
                 textStyle: {
                 textStyle: {
                   fontSize: 30,
                   fontSize: 30,
                   color: '#fff',
                   color: '#fff',