Эх сурвалжийг харах

渐变色柱形图y轴更新

qianming 4 жил өмнө
parent
commit
3d7c1067ec

+ 12 - 4
report-ui/src/views/report/bigscreen/designer/tools/componentsJSON/widget-gradient-barchart.js

@@ -1,6 +1,6 @@
 /*
  * @Descripttion: 柱状图渐变色 json
- * @version: 
+ * @version:
  * @Author: qianlishi
  * @Date: 2021-08-29 07:23:41
  * @LastEditors: qianlishi
@@ -298,10 +298,18 @@ export const widgetGradientBarchart =  {
                 placeholder: '',
                 value: 0
               },
+              {
+                type: 'el-switch',
+                label: '缩放',
+                name: 'scale',
+                require: false,
+                placeholder: '',
+                value: false,
+              },
               {
                 type: 'el-input-number',
-                label: '文字间隔',
-                name: 'ytextInterval',
+                label: '均分',
+                name: 'splitNumber',
                 required: false,
                 placeholder: '',
                 value: ''
@@ -564,4 +572,4 @@ export const widgetGradientBarchart =  {
         },
       ],
     }
-  }
+  }

+ 2 - 1
report-ui/src/views/report/bigscreen/designer/widget/bar/widgetGradientColorBarchart.vue

@@ -241,12 +241,13 @@ export default {
       const optionsCollapse = this.optionsSetup;
       const yAxis = {
         type: "value",
+        scale : optionsCollapse.scale,
+        splitNumber: optionsCollapse.splitNumber,// 均分
         show: optionsCollapse.isShowY, // 坐标轴是否显示
         name: optionsCollapse.textNameY, // 坐标轴名称
         inverse: optionsCollapse.reversalY, // 轴反转
         axisLabel: {
           show: true,
-          interval: optionsCollapse.ytextInterval, // 文字间隔
           rotate: optionsCollapse.ytextAngle, // 文字角度
           textStyle: {
             color: optionsCollapse.colorY, // y轴 坐标文字颜色