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