Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrecek234 authored and mvorisek committed Aug 18, 2022
1 parent 3722c4e commit 0b15108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ public function setModel(Model $model, array $columns = [], array $stacks = []):
'stack' => $stack,
'data' => [],
];
}

if ($stacks != []) {
$this->setOptions(['scales' => ['yAxes' => [0 => ['stacked' => true]], 'xAxes' => [0 => ['stacked' => true]]]]);
}
if ($stacks != []) {
$this->setOptions(['scales' => ['yAxes' => [0 => ['stacked' => true]], 'xAxes' => [0 => ['stacked' => true]]]]);
}

// prepopulate data-sets
Expand Down

0 comments on commit 0b15108

Please sign in to comment.