File manager - Edit - /home/linknsbh/cecil-hotel.net/vendor/botble/platform/base/src/Widgets/Chart.php
Back
<?php namespace Botble\Base\Widgets; abstract class Chart extends Widget { protected string $view = 'chart'; protected string $type = 'line'; protected int $height = 275; protected string $strokeCurve = 'smooth'; public function options(): array { return [ 'stroke' => [ 'curve' => $this->strokeCurve, ], 'chart' => [ 'height' => $this->height, 'toolbar' => [ 'show' => false, ], 'type' => $this->type, ], 'series' => [], 'xaxis' => [ 'categories' => [], ], ]; } abstract public function getOptions(): array; public function getViewData(): array { return array_merge(parent::getViewData(), [ 'options' => array_merge($this->options(), $this->getOptions()), ]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.11 |
proxy
|
phpinfo
|
Settings