Skip to content

Commit 8556186

Browse files
authored
Merge pull request #15 from Sandritsch91/master
Adapt height of chart by number of series
2 parents 2745bdd + e5828c0 commit 8556186

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/plan/chart.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,15 @@
145145
<?= Yii::t('simialbi/kanban/chart', 'Assignee'); ?>
146146
</h5>
147147
<div class="card-body">
148+
<?php
149+
$height = 100;
150+
$height += count($barSeries) * 50;
151+
?>
148152
<?= LineChart::widget([
149153
'options' => [
150154
'style' => [
151155
'width' => '100%',
152-
'height' => '400px'
156+
'height' => $height . 'px'
153157
]
154158
],
155159
'series' => $barSeries,

0 commit comments

Comments
 (0)