Explorar el Código

纵坐标加%

luolei hace 5 años
padre
commit
29e19e0a43
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/js/console.js

+ 4 - 1
src/js/console.js

@@ -1115,7 +1115,10 @@ function barChartLevel(dataX,dataY){
                 axisLabel: {//y轴刻度
                     textStyle: {
                         color: '#E9EBEF'
-                    }
+                    },
+                
+                    interval: 'auto',  
+                    formatter: '{value} %'  
                 },
                 splitLine:{//分割线
                     lineStyle:{