zhouy 3 年 前
コミット
a9121d00e0

+ 3 - 1
uas-office-web/uas-mobile/src/components/common/bizgoblin/BarChart.jsx

@@ -41,7 +41,9 @@ export default class ColumnChart extends Component {
       height = '300'
     } else {
       height = data.length * 30
-      adjustStack = data[0].hasOwnProperty("gField");
+      if(data.length <=5) {
+        height = data.length * 30 +100
+      }
     }
     return (
       <div className='bar-graph'