diff --git a/src/Traits/Formatter.php b/src/Traits/Formatter.php index c0a2525..196d870 100644 --- a/src/Traits/Formatter.php +++ b/src/Traits/Formatter.php @@ -17,7 +17,7 @@ public function toVue(): array return [ 'id' => $this->getId(), 'height' => $this->getHeight(), - 'width' => $this->getWidth(), + 'width' => $this->getWidth() ?? '100%', 'type' => $this->getType(), 'options' => json_decode($this->getOptions(), true), 'series' => $this->getSeries(),