Browse Source

fix: ppt图表图列在底部,图表顶部留大

Karsa 3 months ago
parent
commit
20e8b31271
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/views/ppt_manage/mixins/pptMixins.js

+ 1 - 2
src/views/ppt_manage/mixins/pptMixins.js

@@ -777,11 +777,10 @@ export default {
           chart: {
           chart: {
             ...defaultOpts.chart,
             ...defaultOpts.chart,
 					  ...chartTheme&&chartTheme.drawOption,
 					  ...chartTheme&&chartTheme.drawOption,
-            spacing: chartTheme.legendOptions.verticalAlign==='bottom' ? [23,10,2,10] : [2,10,2,10],//图例在底部顶部空间留大点给单位
+            spacing: chartTheme.legendOptions.verticalAlign==='bottom' ? [25,10,2,10] : [2,10,2,10],//图例在底部顶部空间留大点给单位
             animation: false,
             animation: false,
             backgroundColor: "rgba(0,0,0,0)",
             backgroundColor: "rgba(0,0,0,0)",
             renderTo:$(`#${refName}`)[0],
             renderTo:$(`#${refName}`)[0],
-            ...options.chart||{},
           },
           },
           legend: {
           legend: {
             ...defaultOpts.legend,
             ...defaultOpts.legend,