Browse Source

条形图高度自适应

zhouy 3 years ago
parent
commit
7b0b112592

+ 2 - 0
uas-office-web/uas-mobile/src/components/common/bizgoblin/BarChart.jsx

@@ -39,7 +39,9 @@ export default class ColumnChart extends Component {
     if (isObjEmpty(detailData) || detailData.length == 0) {
       height = '300'
     } else {
+      console.log(detailData.length);
       height = detailData.length * 30
+      console.log(height);
     }
     return (
       <div className='bar-graph'