maxiaoxiao 10 сар өмнө
parent
commit
50ecd3d722

+ 1 - 0
src/components/echartsTemplate/pie.vue

@@ -200,6 +200,7 @@ export default {
         option.legend.top = "center";
         option.legend.orient = "vertical";
       }
+      option.legend.right= cartData.legend_right||"2%"
       let max = cartData.max || 4
       option.legend.textStyle.rich.name.width = max * 15
       option.legend.formatter = function (name) {